uclibc is a version of the C standard library for embedded systems
Questions tagged [uclibc]
110 questions
1
vote
1 answer
KLEE: Unexpected error about inline assembly
I was playing around with KLEE recently. I followed the document "Building KLEE (LLVM 3.4)" and successfully ran all the examples in the tutorial.
However, when running my own program using KLEE:
$ klee -load=/usr/lib/x86_64-linux-gnu/libssl.so…

h1994st
- 35
- 1
- 5
1
vote
1 answer
Why does uClibc UCLIBC_BUILD_NOEXECSTACK not actually use the linker flag -Wl,-z,noexecstack
One modern Linux security hardening tactic is to compile & link code with the option -Wl,-z-noexecstack, this marks the DLL or binary as not needing an executable stack. This condition can be checked using readelf or other means.
I have been…

6EQUJ5
- 3,142
- 1
- 21
- 29
1
vote
1 answer
uclibc support by GCC
'man gcc' describes a number of machine-dependent options for different platforms and architectures, but I don't understand the purpose of '-muclibc' as it is defined under GNU/Linux options, but not a specific hardware.
Could someone provide more…

Mark
- 6,052
- 8
- 61
- 129
1
vote
0 answers
backtrace() replacement for uClibc i386
I'm compiling a statically linked i386 binary for Linux, using uClibc. The backtrace library function to generate a stack trace of addresses is not available. I need a replacement.
Both…

pts
- 80,836
- 20
- 110
- 183
1
vote
1 answer
RTLD_NEXT is not working properly
I reduced my problem using below test codes,
main.cc
#include
int main(int argc, const char** argv) {
void init2();
init2();
return 0;
}
2.cc
#include
int init2() {
void init1();
init1();
std::cout<<"init2…

Arunprasad Rajkumar
- 1,374
- 1
- 15
- 31
1
vote
0 answers
What is the meaning of .L__X'%ebx = 1 in uClibc syscalls.h for i386
__asm__ (".L__X'%ebx = 1\n\t"
".L__X'%ecx = 2\n\t"
".L__X'%edx = 2\n\t"
".L__X'%eax = 3\n\t"
".L__X'%esi = 3\n\t"
".L__X'%edi = 3\n\t"
".L__X'%ebp = 3\n\t"
".L__X'%esp = 3\n\t"
".ifndef _BITS_SYSCALLS_ASM\n\t"
".set…

Adambynes
- 197
- 1
- 10
1
vote
2 answers
Custom toolchain build fails
I'm building an uClibc i486 cross toolchain for an embedded system. The toolchain is built on Debian Wheezy (x86-64) and consists of the following components:
Binutils 2.24
GCC 4.7.3
Linux 3.2.54
uClibc 0.9.33.2
GMP 5.1.3
MPFR 3.1.2
MPC…

user3236649
- 13
- 3
1
vote
2 answers
Building uclibc linux 3.10-2 (Debian jessie x86_64) fails due to missing types
I'm trying to build uClibc 0.9.27 [1] on x86_64 with the linux kernel 3.10-2-amd64. I can verify that it builds on Ubuntu 12.04.3 with the 3.2.0-49-generic kernel. When running make, it manages to build a lot of object files but eventually reaches…

bitmask
- 32,434
- 14
- 99
- 159
1
vote
1 answer
glibc to uclibc Timezone mapping file
I came across a mapping file for timezone strings from glibc to uclibc. It looks like this:
Africa/Abidjan=GMT0
Africa/Accra=GMT0
Africa/Addis Ababa=EAT-3
Africa/Algiers=CET-1
...
This file is quite old (4 years), and several new TimeZones have been…

Ouroboros
- 1,432
- 1
- 19
- 41
1
vote
1 answer
GCC-GNAT Ada Cross-Compiler (Debian/glibc -> AlpineLinux/uclibc)
I compiled a GCC 4.8.1 Cross-Compiler (BUILD/HOST: debian/glibc, TARGET: alpinelinux/uclibc). The C compiler is working great, but Ada won't work at moment.
juan@debian:~/HelloAda$ x86_64-alpine-linux-uclibc-gnatmake hello.adb…

user1091344
- 612
- 6
- 27
1
vote
1 answer
/bin/sh: 1: /home/qingjinlyc/IDEs/llvm-gcc-4.2-2.9-i686-linux: Permission denied
When building klee, I need build uclibc for klee first. But something went wrong when I tried to make uclibc, the error info are:
qingjinlyc@qingjinlyc:~/IDEs/klee-uclibc-0.02-i386$ make
/bin/sh: 1: /home/qingjinlyc/IDEs/llvm-gcc-4.2-2.9-i686-linux:…

qingjinlyc
- 175
- 2
- 12
1
vote
1 answer
RESTful client API for uCLib
I need to implement a RESTfull client in an embedded environnement using uClibc.
Is there any open source library that implements RESTful Client in C that could only rely on µClibc?

SFcrawford
- 23
- 1
- 3
0
votes
1 answer
Getting "Unknown error 2" when running BusyBox applets compiled against uClibc
I am trying to make an embedded Linux for a SuperH processor board. I am using the Buildroot 2012.2 toolchain with uClibc.
All compiles fine but when I try to run some of the BusyBox applets (for instance 'ls' or 'mount'), I get an error like…

Rusty Horse
- 2,388
- 7
- 26
- 38
0
votes
2 answers
API to check information about CPU, memory, network, NAT table usage
I am developing an embedded Linux system (2.6 kernel and uclibc) and I need to check for cpu, memory, network, NAT Table usage, etc...
Which API should I use? Where can i check it? I have visited some websites about the Linux kernel API but didnt…

fazineroso
- 7,196
- 7
- 31
- 42
0
votes
1 answer
function wrapping in c - sbrk for tcmalloc
I am trying to port tcmalloc to uclibc. Tcmalloc has a definition for sbrk function, which in turn calls the __sbrk from libc. Uclibc on the other hand does not have __sbrk function, but has sbrk.
Any ideas about how I can call uclibc sbrk from…

l.thee.a
- 3,231
- 6
- 25
- 28