This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add support for ld-elf.so.hints on FreeBSD


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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]