Hi,
uClibc-ng 1.0.13 doesn't seem to have atexit function:
[root@unknown root]$ cat hello.c #include <stdio.h> #include <stdlib.h> void blah(void) { printf("Hello world 2\n"); } int main(int argc, char* argv[]) { printf("Hello world\n"); atexit(blah); exit(0); } [root@unknown root]$ gcc hello.c -o hello /tmp/ccO5Ibuw.o: In function `main': hello.c:(.text+0x9c): undefined reference to `atexit' hello.c:(.text+0xa4): undefined reference to `atexit' collect2: error: ld returned 1 exit status
If, as a dirty hack, I compile it with '-Datexit=__cxa_atexit', it works:
[root@unknown root]$ gcc hello.c -o hello -Datexit=__cxa_atexit [root@unknown root]$ ./hello Hello world Hello world 2
Here're my ATEXIT config lines:
UCLIBC_DYNAMIC_ATEXIT=y COMPAT_ATEXIT=y
See full config attached.
Is there something I'm missing, or this is a bug?
Thanks, Alex