[PATCH] Add support for ld-elf.so.hints on FreeBSD - Second try
Jan-Benedict Glaw
jbglaw@lug-owl.de
Fri Feb 24 22:15:00 GMT 2006
On Fri, 2006-02-24 14:28:03 +0100, Diego 'Flameeyes' Pettenò <flameeyes@gentoo.org> wrote:
> Index: binutils-2.16.1/ld/emultempl/elf32.em
> ===================================================================
> --- binutils-2.16.1.orig/ld/emultempl/elf32.em
> +++ binutils-2.16.1/ld/emultempl/elf32.em
> @@ -522,6 +522,97 @@ gld${EMULATION_NAME}_add_sysroot (const
>
> EOF
> case ${target} in
> + *-*-freebsd*)
> + cat >>e${EMULATION_NAME}.c <<EOF
> +/*
> + * Read the system search path the FreeBSD way rather than like Linux.
> + */
> +#ifdef HAVE_ELF_HINTS_H
> +#include <elf-hints.h>
> +#else
> + /*
> + * Fallback code took from FreeBSD's libc
"taken" instead of "took"? Though I'm not a native English speaker...
> --- binutils-2.16.91.0.6.orig/ld/emultempl/elf32.em
> +++ binutils-2.16.91.0.6/ld/emultempl/elf32.em
Dito.
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20060224/4aaadedd/attachment.sig>
More information about the Binutils
mailing list