[RFC] ld sysroot prefix handling

Mike Frysinger vapier@gentoo.org
Fri May 29 23:14:00 GMT 2009


On Friday 29 May 2009 02:37:16 Sven Rebhan wrote:
> So what you can see is that most cases are handled correct right now,
> the only thing that fails badly is when you have an ld-script that
> contains an absolute path. Here the sysroot prefix is _NOT_ prepended
> and thus linking against such a script breaks most packages during
> cross-compilation as the linker tries to link against a host library.
>
> Hope this clarifies a bit what I want!? :-)

it does, thanks.  so now the trick is to detect linker scripts that are in the 
sysroot but specified with their full path and set entry->sysrooted to 1.  
looking again (not testing) at your original patch makes me think that your 
patch should fix the /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libusb.so 
case without breaking the /root/binutils-test/lib/libfoo.so case right ?  if 
that's the case, i would add a comment above the line so that the intentions 
are kept clear and pester people for commit approval :).
-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/20090529/ce6827e8/attachment.sig>


More information about the Binutils mailing list