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

Diego 'Flameeyes' Pettenò flameeyes@gentoo.org
Mon Feb 20 23:31:00 GMT 2006


On Monday 20 February 2006 21:13, Daniel Jacobowitz wrote:
> 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.
Okay I hope i got this right this time. Unfortunately being a binary file, it 
will fail if the endianness of the sysroot's hints file is different from the 
endianness of the building system.

By the way, seems to me that ld.so.conf is ignored on GNU/Linux, at least if I 
try to link to a non-existant libfoo, ld --verbose shows me only checks 
inside the paths defined at compile time (SEARCH_DIRS) and the ones given by 
command line (-L...), not for the paths defined in ld.so.conf (while it shows 
them on FreeBSD with this patch).

-- 
Diego "Flameeyes" Pettenò - http://dev.gentoo.org/~flameeyes/
Gentoo/ALT lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-2.16.91.0.6-ldhints.patch
Type: text/x-diff
Size: 4901 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060220/22206ccd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-2.16.1-ldhints.patch
Type: text/x-diff
Size: 4905 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060220/22206ccd/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060220/22206ccd/attachment.sig>


More information about the Binutils mailing list