This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Add support for ld-elf.so.hints on FreeBSD
On Mon, Feb 20, 2006 at 07:19:28PM +0100, Diego 'Flameeyes' Pettenò wrote:
> 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.
What's supposed to happen is that we have a sysroot for the target
FreeBSD system, possibly including a hints file. See /etc/ld.so.conf
handling for GNU/Linux for a parallel; as far as I can tell this is
the same behavior you want.
--
Daniel Jacobowitz
CodeSourcery