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
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Diego 'Flameeyes' Petten? <flameeyes at gentoo dot org>
- Cc: binutils at sourceware dot org
- Date: Mon, 20 Feb 2006 09:15:16 -0800
- Subject: Re: [PATCH] Add support for ld-elf.so.hints on FreeBSD
- References: <200602201520.30072@enterprise.flameeyes.is-a-geek.org>
On Mon, Feb 20, 2006 at 03:20:23PM +0100, Diego 'Flameeyes' Petten? wrote:
> While working on Gentoo/FreeBSD I had quite a few problems with linking, as
> binutils shipped with FreeBSD base system are patched to get the search paths
> (when using a native ld) from the ld-elf.so hints file.
>
> The two attached patches are forward ports of the original patch (a bit
> reworked as there were changes in the API it seems, before it was passing the
> library name, now a dt_needed struct pointer), applying to version 2.16.1 and
> 2.16.91.0.6 (it's a refresh of the other, after fixing the change between
> *-linux-gnu* and the new check for uclibc/glibc targets).
>
I don't think it is complete since your patches include a new header
file, elf-hint.h, which may not exist on all hosts. The cross linker
on Linux for FreeBSD won't build. You may want to check if it exists
before including it and provides default macros if they aren't
defined.
H.J.