[uClibc] [Repost] Is there any advantage in utils/ldd being linked with uClibc?

Charlie Brady charlieb-uclibc at e-smith.com
Tue Jan 20 19:14:58 UTC 2004


With reference to errors attempting to build ldd, I asked some questions. 
I'm still interested in replies, in case anyone has insight and would like 
to share.

...

> Why should the uClibc versions be used? In the more general case that I'm 
> building cross-development tools, uClibc may not even be installed on the 
> build host.

uClibc's ldd compiles and runs fine with glibc and stock gcc:

[charlieb at localhost utils]$ gcc -Wall -Wstrict-prototypes 
-Wno-trigraphs 
-fno-strict-aliasing -mpreferred-stack-boundary=2 -falign-jumps=0 
-falign-loops=0 -Os -fno-builtin -I. -DNDEBUG -fPIC -D__LDSO_LDD_SUPPORT 
-Wl,-s -DUCLIBC_RUNTIME_PREFIX= -DUCLIBC_LDSO=ld-uClibc.so.0 ldd.c -o ldd
[charlieb at localhost utils]$ ./ldd ldd
        libc.so.6 => /lib/tls/libc.so.6 (0x00bb3000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00f38000)
[charlieb at localhost utils]$ ldd ldd
        libc.so.6 => /lib/tls/libc.so.6 (0x00d90000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0015b000)
[charlieb at localhost utils]$

Is there any advantage in compiling this tool against uClibc?

--
Charlie




More information about the uClibc mailing list