ld doesn't relocate sysroot if called as tooldir/bin/ld

Alexandre Oliva aoliva@redhat.com
Thu Feb 20 10:10:00 GMT 2003


This patch fixes the problem above.  I wasn't sure whether to try to
find the sys-root starting at toolbindir or bindir first, but ended up
deciding for searching bindir first, since toolbindir and GCC's
default sysroot are siblings, so toolbindir would be more likely to
find a false match.

Ok to install?


Along the same lines...  What would people think of arranging for
pathnames in linker scripts within the sysroot to have the sysroot
pathname prepended to them?  This would solve the main problem of
relocating a cross toolchain with a glibc sysroot, because the glibc
linker scripts reference full pathnames in the real root.  Comments?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysroot-ld-toolbindir.patch
Type: text/x-patch
Size: 1865 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030220/059e4fdf/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Binutils mailing list