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 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.


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