[RFC] ld sysroot prefix handling
Mike Frysinger
vapier@gentoo.org
Thu May 28 16:18:00 GMT 2009
On Thursday 28 May 2009 05:11:16 Sven Rebhan wrote:
> 2009/5/28 Mike Frysinger <vapier@gentoo.org>:
> > any changes proposed have to not break full paths outside of the sysroot.
> > i.e. something like:
> > cd ~/
> > mkdir lib/scripts
> > echo "GROUP ( $PWD/lib/libfoo.so )" > lib/scripts/libfoo.so
> > <make a library at lib/libfoo.so>
> > armv4tl-softfloat-linux-gnueabi-gcc -Llib/scripts -lfoo ....
>
> This is handled correctly in the searchpath add procedure (sorry
> don't have the code right now). However, if you compile with
> armv4tl-softfloat-linux-gnueabi-gcc ...
> ${ABSOLUTE_PATH_TO_LD_SCRIPT}/libfoo.so it should fail. Again, the bug
> only occures in the absolute filename case in combination with linker
> scripts.
it shouldnt fail because the absolute path as specified in the linker script
is the correct path. ld shouldnt prefix the sysroot whether -lfoo or
..../libfoo.so is used here.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20090528/6b007fa0/attachment.sig>
More information about the Binutils
mailing list