[PATCH] Add support for ld-elf.so.hints on FreeBSD
Diego 'Flameeyes' Pettenò
flameeyes@gentoo.org
Mon Feb 20 21:44:00 GMT 2006
On Monday 20 February 2006 18:15, H. J. Lu wrote:
> You may want to check if it exists
> before including it and provides default macros if they aren't
> defined.
The problem here is that elf hints are specific to the platform, so they makes
little sense for non-native linkers.
Probably it would be better to change the condition to match NATIVE instead of
USE_LIBPATH (as it's being done for Linux and GNU/* systems, but in that case
what it's parsed it's just a text file).
Although I could put the content of the header in the code, there's a check
for a magic number probably used to make sure that the structure of the file
being parsed is the right one, and if they ever think of changing that
structure, the search would fail. Yes there's probably no lost in it to fail,
but there's also no win in checking the current running ls.so's hints file
when using a crosslinker.
--
Diego "Flameeyes" Pettenò - http://dev.gentoo.org/~flameeyes/
Gentoo/ALT lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060220/b88bdf3a/attachment.sig>
More information about the Binutils
mailing list