[PATCH] Add support for ld-elf.so.hints on FreeBSD
H. J. Lu
hjl@lucon.org
Mon Feb 20 20:09:00 GMT 2006
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.
More information about the Binutils
mailing list