This is the mail archive of the 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 FreeBSD-specific `ld' emulations

On Feb 18, 2002, "David O'Brien" <> wrote:

> 2002-02-17  David O'Brien  <>
> 	* Add new files earmelf_fbsd, eelf32ppc_fbsd,
> 	eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
> 	and eelf64alpha_fbsd.
> 	* configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
> 	x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
> 	use a FreeBSD-specific emulation rather than the psABI one.
> 	* emulparams/ (ELF_INTERPRETER_NAME): Set appropriate value
> 	for all FreeBSD ELF systems.
> 	* emulparams/ Bridge and the "native" psABI
> 	emulation.
> 	* emulparams/ Likewise.
> 	* emulparams/ Likewise.
> 	* emulparams/ Likewise.
> 	* emulparams/ Likewise.
> 	* emulparams/ Likewise.
> 	* emulparams/ Likewise.
> 	* emulparams/ Likewise.

This broke my unified-build-tree bootstrap this week.  The default
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?
Ok to install?

Index: gcc/ChangeLog
from  Alexandre Oliva  <>

	* config/i386/freebsd.h (LINK_SPEC): Use elf_i386_fbsd as default
	linker emulation.

Index: gcc/config/i386/freebsd.h
RCS file: /cvs/gcc/egcs/gcc/config/i386/freebsd.h,v
retrieving revision 1.29
diff -u -p -r1.29 freebsd.h
--- gcc/config/i386/freebsd.h 2001/10/31 14:32:27 1.29
+++ gcc/config/i386/freebsd.h 2002/02/24 13:07:26
@@ -1,5 +1,5 @@
 /* Definitions for Intel 386 running FreeBSD with ELF format
-   Copyright (C) 1996, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 2000, 2002 Free Software Foundation, Inc.
    Contributed by Eric Youngdale.
    Modified for stabs-in-ELF by H.J. Lu.
    Adapted from GNU/Linux version by John Polstra.
@@ -105,7 +105,7 @@ Boston, MA 02111-1307, USA.  */
    done.  */
 #undef	LINK_SPEC
-#define LINK_SPEC "-m elf_i386 \
+#define LINK_SPEC "-m elf_i386_fbsd \
   %{Wl,*:%*} \
   %{v:-V} \
   %{assert*} %{R*} %{rpath*} %{defsym*} \

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist                Professional serial bug killer

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