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

Manuel Novoa III mjn3 at codepoet.org
Tue Jan 20 20:23:27 UTC 2004


Hello,

On Tue, Jan 20, 2004 at 02:14:58PM -0500, Charlie Brady wrote:
> 
> 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?

What am I missing?  ldd and all the other apps in uClibc/utils are
built to be run on the target.

Manuel



More information about the uClibc mailing list