Binutils & GCC 2nd pass

Chris Staub chris at
Wed Dec 16 09:58:56 PST 2009

On 12/16/2009 12:19 PM, Peter Dunning wrote:
> Hi,
> I've been building an LFS system and I noticed that in 5.9 we recompile
> the linker to look in /usr/lib and /lib for libraries. Does this mean
> the following in 5.10 should produce nothing? (as the executable should
> request the interpreter from /lib or /usr/lib)
> echo 'main(){}'>  dummy.c
> cc dummy.c
> readelf -l a.out | grep ': /tools'
> Peter

No, since the recompiled linker for /lib and /usr/lib is copied to 
/tools/bin/ld-new. /tools/bin/ld is still the one that looks in /tools, 
which is why in the "Readjusting the Toolchain" step /tools/bin/ld-new 
is renamed ld.

More information about the lfs-support mailing list