This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add FreeBSD-specific `ld' emulations
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, GNU Binutils mailing list <binutils at sources dot redhat dot com>
- Date: Sun, 24 Feb 2002 09:59:36 -0800
- Subject: Re: [PATCH] add FreeBSD-specific `ld' emulations
- Organization: The NUXI BSD group
- References: <20020217213444.A85432@dragon.nuxi.com> <orofifc9gv.fsf@free.redhat.lsd.ic.unicamp.br>
- Reply-to: obrien at FreeBSD dot org
On Sun, Feb 24, 2002 at 10:09:36AM -0300, Alexandre Oliva wrote:
> linker script used by gcc, for emulation elf_i386, no longer searches
> for libraries in /lib or /usr/lib after this change. This change in
> GCC fixed the problem, but I'm not sure it's the way to go. Is it?
-#define LINK_SPEC "-m elf_i386 \
+#define LINK_SPEC "-m elf_i386_fbsd \
I am starting to think the `-m' should be totally removed and rely on the
default emulation. The problem with leaving things as-is; or changing
them is it forces the user to upgrade their Binutils installation. For
GCC 3.2 most users will probably(maybe) have Binutils 2.12.0 or later
installed. But I am not sure what is the most sensable value for 3.1.0,
or even 3.0.5 (should there be one).