add ARM support.

--
From: brad@, based on original diffs from kevlo@
This commit is contained in:
brad 2003-07-28 05:12:00 +00:00
parent 0f1c2892bf
commit a75f848444
9 changed files with 163 additions and 41 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.23 2003/07/16 19:17:21 brad Exp $
# $OpenBSD: Makefile,v 1.24 2003/07/28 05:12:00 brad Exp $
COMMENT= "GNU development tools"
@ -29,7 +29,7 @@ CONFIGURE_ARGS= --with-prefix=${PREFIX} \
--disable-nls --disable-commonbfdlib
# cross-tools
FLAVORS= alpha hppa i386 m68k m88k mips powerpc \
FLAVORS= alpha arm armeb hppa i386 m68k m88k mips powerpc \
sparc sparc64 vax x86_64
FLAVOR?=
@ -59,7 +59,7 @@ EMULPARAMS= i386obsd.sh sparcobsd.sh m68kobsd.sh \
elf32_sparc_obsd.sh elf32ppc_obsd.sh \
elf64_sparc_obsd.sh elf64alpha_obsd.sh \
elf_i386_obsd.sh elf_x86_64_obsd.sh \
elf_obsd.sh
elf_obsd.sh armelf_obsd.sh armelfb_obsd.sh
post-extract:
.for f in ${EMULPARAMS}

View File

@ -0,0 +1,7 @@
. ${srcdir}/emulparams/armelf.sh
. ${srcdir}/emulparams/elf_obsd.sh
MAXPAGESIZE=0x8000
TEXT_START_ADDR=0x00008000
unset EMBEDDED

View File

@ -0,0 +1,3 @@
. ${srcdir}/emulparams/armelf_obsd.sh
OUTPUT_FORMAT="elf32-bigarm"

View File

@ -1,6 +1,20 @@
$OpenBSD: patch-bfd_config_bfd,v 1.12 2003/06/30 18:24:16 brad Exp $
$OpenBSD: patch-bfd_config_bfd,v 1.13 2003/07/28 05:12:01 brad Exp $
--- bfd/config.bfd.orig Thu Nov 7 11:57:50 2002
+++ bfd/config.bfd Mon Jun 30 12:36:22 2003
+++ bfd/config.bfd Mon Jul 21 16:18:47 2003
@@ -180,11 +180,11 @@ case "${targ}" in
targ_defvec=bfd_elf32_littlearm_vec
targ_selvecs=bfd_elf32_bigarm_vec
;;
- armeb-*-elf | arm*b-*-linux-gnu*)
+ armeb-*-elf | arm*b-*-linux-gnu* | armeb-*-openbsd*)
targ_defvec=bfd_elf32_bigarm_vec
targ_selvecs=bfd_elf32_littlearm_vec
;;
- arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | arm*-*-uclinux*)
+ arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | arm*-*-uclinux* | arm-*-openbsd*)
targ_defvec=bfd_elf32_littlearm_vec
targ_selvecs=bfd_elf32_bigarm_vec
;;
@@ -413,11 +413,15 @@ case "${targ}" in
targ_defvec=i386pe_vec
targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"

View File

@ -1,6 +1,15 @@
$OpenBSD: patch-bfd_configure_in,v 1.7 2003/06/30 18:24:16 brad Exp $
$OpenBSD: patch-bfd_configure_in,v 1.8 2003/07/28 05:12:01 brad Exp $
--- bfd/configure.in.orig Wed Jan 1 20:23:03 2003
+++ bfd/configure.in Mon Jun 30 12:42:06 2003
+++ bfd/configure.in Mon Jul 21 16:19:41 2003
@@ -168,7 +168,7 @@ if test "${target}" = "${host}"; then
;;
alpha*-*-*) COREFILE=osf-core.lo ;;
arm-*-freebsd*) COREFILE='' ;;
- arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
+ arm-*-netbsd* | arm-*-openbsd*) COREFILE=netbsd-core.lo ;;
arm-*-riscix) COREFILE=trad-core.lo ;;
hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
@@ -365,7 +365,7 @@ changequote([,])dnl
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/tahoe.h"'

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-gas_config_tc-arm_c,v 1.4 2003/07/28 05:12:01 brad Exp $
--- gas/config/tc-arm.c.orig Wed Jul 23 21:02:20 2003
+++ gas/config/tc-arm.c Wed Jul 23 21:07:16 2003
@@ -132,6 +132,18 @@
#endif
#endif
+#ifdef TE_LINUX
+#define FPU_DEFAULT FPU_ARCH_FPA
+#endif
+
+#if defined(TE_NetBSD) || defined(TE_OpenBSD)
+#ifdef OBJ_ELF
+#define FPU_DEFAULT FPU_ARCH_VFP /* Soft-float, but VFP order. */
+#else
+#define FPU_DEFAULT FPU_ARCH_FPA /* Soft-float, but FPA order. */
+#endif
+#endif
+
/* For backwards compatibility we default to the FPA. */
#ifndef FPU_DEFAULT
#define FPU_DEFAULT FPU_ARCH_FPA
@@ -9208,10 +9220,16 @@ md_begin ()
}
else if (mfpu_opt == -1)
{
+#if !(defined (TE_LINUX) || defined(TE_NetBSD) || defined(TE_OpenBSD))
+ /* Some environments specify a default FPU. If they don't, infer
+ it from the processor. */
if (mcpu_fpu_opt != -1)
mfpu_opt = mcpu_fpu_opt;
else
mfpu_opt = march_fpu_opt;
+#else
+ mfpu_opt = FPU_DEFAULT;
+#endif
}
if (mfpu_opt == -1)

View File

@ -1,7 +1,17 @@
$OpenBSD: patch-gas_configure_in,v 1.12 2003/06/30 18:24:16 brad Exp $
$OpenBSD: patch-gas_configure_in,v 1.13 2003/07/28 05:12:01 brad Exp $
--- gas/configure.in.orig Wed Oct 30 12:07:32 2002
+++ gas/configure.in Mon Jun 30 12:39:24 2003
@@ -222,7 +222,7 @@ changequote([,])dnl
+++ gas/configure.in Mon Jul 21 16:22:49 2003
@@ -193,7 +193,8 @@ changequote([,])dnl
arm*-*-linux-gnu* | arm*-*-uclinux*)
fmt=elf em=linux ;;
arm-*-netbsdelf*) fmt=elf em=nbsd ;;
- arm-*-netbsd* | arm-*-openbsd*) fmt=aout em=nbsd ;;
+ arm-*-netbsd*) fmt=aout em=nbsd ;;
+ arm-*-openbsd*) fmt=elf em=obsd ;;
arm-*-oabi | thumb-*-oabi) fmt=elf ;;
arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
arm-*-wince) fmt=coff em=wince-pe ;;
@@ -222,7 +223,7 @@ changequote([,])dnl
hppa-*-*elf*) fmt=elf em=hppa ;;
hppa-*-lites*) fmt=elf em=hppa ;;
hppa-*-netbsd*) fmt=elf em=nbsd ;;
@ -10,7 +20,7 @@ $OpenBSD: patch-gas_configure_in,v 1.12 2003/06/30 18:24:16 brad Exp $
hppa-*-osf*) fmt=som em=hppa ;;
hppa-*-rtems*) fmt=elf em=hppa ;;
hppa-*-hpux11*) case ${cpu} in
@@ -260,7 +260,19 @@ changequote([,])dnl
@@ -260,7 +261,19 @@ changequote([,])dnl
;;
esac
;;
@ -31,7 +41,7 @@ $OpenBSD: patch-gas_configure_in,v 1.12 2003/06/30 18:24:16 brad Exp $
i386-*-linux*aout* | i386-*-linux*oldld) fmt=aout em=linux ;;
i386-*-linux*coff*) fmt=coff em=linux ;;
i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
@@ -344,7 +356,7 @@ changequote([,])dnl
@@ -344,7 +357,7 @@ changequote([,])dnl
m68k-*-netbsdelf*) fmt=elf em=nbsd bfd_gas=yes ;;
m68k-*-netbsdaout* | m68k-*-netbsd*)
fmt=aout em=nbsd bfd_gas=yes ;;
@ -40,7 +50,7 @@ $OpenBSD: patch-gas_configure_in,v 1.12 2003/06/30 18:24:16 brad Exp $
m68k-apple-aux*) fmt=coff em=aux ;;
m68k-*-psos*) fmt=elf em=psos;;
@@ -355,7 +367,6 @@ changequote([,])dnl
@@ -355,7 +368,6 @@ changequote([,])dnl
mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
# don't change em like *-*-bsd does
@ -48,7 +58,7 @@ $OpenBSD: patch-gas_configure_in,v 1.12 2003/06/30 18:24:16 brad Exp $
mips-dec-bsd*) fmt=aout endian=little ;;
mips-sony-bsd*) fmt=ecoff ;;
mips-*-bsd*) AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
@@ -434,7 +445,6 @@ changequote([,])dnl
@@ -434,7 +446,6 @@ changequote([,])dnl
sh64-*-elf*) fmt=elf ;;
ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
ns32k-*-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
@ -56,7 +66,7 @@ $OpenBSD: patch-gas_configure_in,v 1.12 2003/06/30 18:24:16 brad Exp $
sparc-*-rtemsaout*) fmt=aout ;;
sparc-*-rtemself*) fmt=elf ;;
@@ -458,12 +468,17 @@ changequote([,])dnl
@@ -458,12 +469,17 @@ changequote([,])dnl
sparc64) fmt=elf ;;
esac
;;

View File

@ -1,7 +1,17 @@
$OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
$OpenBSD: patch-ld_Makefile_am,v 1.7 2003/07/28 05:12:01 brad Exp $
--- ld/Makefile.am.orig Wed Jan 1 19:56:31 2003
+++ ld/Makefile.am Wed Jul 9 16:37:55 2003
@@ -151,6 +151,7 @@ ALL_EMULATIONS = \
+++ ld/Makefile.am Mon Jul 21 16:31:14 2003
@@ -120,7 +120,9 @@ ALL_EMULATIONS = \
earmelf_fbsd.o \
earmelf_linux.o \
earmelf_nbsd.o \
+ earmelf_obsd.o \
earmelfb_nbsd.o \
+ earmelfb_obsd.o \
earmelf_oabi.o \
earmnbsd.o \
earmpe.o \
@@ -151,6 +153,7 @@ ALL_EMULATIONS = \
eelf32_i960.o \
eelf32_i860.o \
eelf32_sparc.o \
@ -9,7 +19,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf32b4300.o \
eelf32bmip.o \
eelf32bmipn32.o \
@@ -169,6 +170,7 @@ ALL_EMULATIONS = \
@@ -169,6 +172,7 @@ ALL_EMULATIONS = \
eelf32openrisc.o \
eelf32ppc.o \
eelf32ppc_fbsd.o \
@ -17,7 +27,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf32ppclinux.o \
eelf32ppcsim.o \
eelf32ppcwindiss.o \
@@ -178,6 +180,7 @@ ALL_EMULATIONS = \
@@ -178,6 +182,7 @@ ALL_EMULATIONS = \
eelf_i386_be.o \
eelf_i386_chaos.o \
eelf_i386_fbsd.o \
@ -25,7 +35,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf_i386_ldso.o \
eelf_s390.o \
egld960.o \
@@ -210,6 +213,7 @@ ALL_EMULATIONS = \
@@ -210,6 +215,7 @@ ALL_EMULATIONS = \
ei386moss.o \
ei386msdos.o \
ei386nbsd.o \
@ -33,7 +43,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
ei386nto.o \
ei386nw.o \
ei386pe.o \
@@ -228,6 +232,7 @@ ALL_EMULATIONS = \
@@ -228,6 +234,7 @@ ALL_EMULATIONS = \
em68klinux.o \
em68klynx.o \
em68knbsd.o \
@ -41,7 +51,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
em68kpsos.o \
em88kbcs.o \
emcorepe.o \
@@ -268,6 +273,7 @@ ALL_EMULATIONS = \
@@ -268,6 +275,7 @@ ALL_EMULATIONS = \
esparclinux.o \
esparclynx.o \
esparcnbsd.o \
@ -49,7 +59,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
est2000.o \
esun3.o \
esun4.o \
@@ -293,11 +299,14 @@ ALL_64_EMULATIONS = \
@@ -293,11 +301,14 @@ ALL_64_EMULATIONS = \
eshlelf64_nbsd.o \
eelf_x86_64.o \
eelf_x86_64_fbsd.o \
@ -64,7 +74,25 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf64alpha_nbsd.o \
eelf64bmip.o \
eelf64btsmip.o \
@@ -540,6 +549,10 @@ em32relf.c: $(srcdir)/emulparams/m32relf
@@ -415,6 +426,17 @@ earmelfb_nbsd.c: $(srcdir)/emulparams/ar
$(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
+earmelf_obsd.c: $(srcdir)/emulparams/armelf_obsd.sh \
+ $(srcdir)/emulparams/armelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
+ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} armelf_obsd "$(tdir_armelf_obsd)"
+earmelfb_obsd.c: $(srcdir)/emulparams/armelfb_obsd.sh \
+ $(srcdir)/emulparams/armelf_obsd.sh \
+ $(srcdir)/emulparams/armelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
+ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} armelfb_obsd "$(tdir_armelfb_obsd)"
earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
@@ -540,6 +562,10 @@ em32relf.c: $(srcdir)/emulparams/m32relf
eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
@ -75,7 +103,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
@@ -608,6 +621,10 @@ eelf32ppc_fbsd.c: $(srcdir)/emulparams/e
@@ -608,6 +634,10 @@ eelf32ppc_fbsd.c: $(srcdir)/emulparams/e
$(srcdir)/emulparams/elf32ppc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32ppc_fbsd "$(tdir_elf32ppc_fbsd)"
@ -86,7 +114,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
$(srcdir)/emulparams/elf32ppc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
@@ -633,6 +650,10 @@ eelf64alpha_fbsd.c: $(srcdir)/emulparams
@@ -633,6 +663,10 @@ eelf64alpha_fbsd.c: $(srcdir)/emulparams
$(srcdir)/emulparams/elf64alpha.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf64alpha_fbsd "$(tdir_elf64alpha_fbsd)"
@ -97,7 +125,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
$(srcdir)/emulparams/elf64alpha.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
@@ -663,6 +684,10 @@ eelf64_sparc_fbsd.c: $(srcdir)/emulparam
@@ -663,6 +697,10 @@ eelf64_sparc_fbsd.c: $(srcdir)/emulparam
$(srcdir)/emulparams/elf64_sparc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf64_sparc_fbsd "$(tdir_elf64_sparc_fbsd)"
@ -108,7 +136,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
$(srcdir)/emulparams/elf32bmipn32.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
@@ -693,6 +718,10 @@ eelf_x86_64_fbsd.c: $(srcdir)/emulparams
@@ -693,6 +731,10 @@ eelf_x86_64_fbsd.c: $(srcdir)/emulparams
$(srcdir)/emulparams/elf_x86_64.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_x86_64_fbsd "$(tdir_elf_x86_64_fbsd)"
@ -119,7 +147,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
@@ -703,6 +732,10 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/e
@@ -703,6 +745,10 @@ eelf_i386_fbsd.c: $(srcdir)/emulparams/e
$(srcdir)/emulparams/elf_i386.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
@ -130,7 +158,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
@@ -809,6 +842,9 @@ ei386msdos.c: $(srcdir)/emulparams/i386m
@@ -809,6 +855,9 @@ ei386msdos.c: $(srcdir)/emulparams/i386m
ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
@ -140,7 +168,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
ei386nto.c: $(srcdir)/emulparams/i386nto.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} i386nto "$(tdir_i386nto)"
@@ -866,6 +902,9 @@ em68klynx.c: $(srcdir)/emulparams/m68kly
@@ -866,6 +915,9 @@ em68klynx.c: $(srcdir)/emulparams/m68kly
em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
@ -150,7 +178,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
@@ -1025,6 +1064,9 @@ esparclynx.c: $(srcdir)/emulparams/sparc
@@ -1025,6 +1077,9 @@ esparclynx.c: $(srcdir)/emulparams/sparc
esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
@ -160,7 +188,7 @@ $OpenBSD: patch-ld_Makefile_am,v 1.6 2003/07/16 19:17:22 brad Exp $
est2000.c: $(srcdir)/emulparams/st2000.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
${GENSCRIPTS} st2000 "$(tdir_st2000)"
@@ -1212,7 +1254,7 @@ install-exec-local: ld-new$(EXEEXT)
@@ -1212,7 +1267,7 @@ install-exec-local: ld-new$(EXEEXT)
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-ld_configure_tgt,v 1.10 2003/07/16 19:17:22 brad Exp $
$OpenBSD: patch-ld_configure_tgt,v 1.11 2003/07/28 05:12:01 brad Exp $
--- ld/configure.tgt.orig Mon Oct 28 10:58:12 2002
+++ ld/configure.tgt Wed Jul 9 15:22:39 2003
+++ ld/configure.tgt Mon Jul 21 16:46:42 2003
@@ -70,12 +70,15 @@ sparc*-*-linux-gnu*) targ_emul=elf32_spa
tdir_sun4=sparc-sun-sunos4
;;
@ -34,7 +34,19 @@ $OpenBSD: patch-ld_configure_tgt,v 1.10 2003/07/16 19:17:22 brad Exp $
x86_64-*-netbsd*) targ_emul=elf_x86_64
targ_extra_emuls="elf_i386 i386nbsd"
tdir_elf_i386=`echo ${targ_alias} | \
@@ -340,6 +351,7 @@ m68*-*-netbsdelf*) targ_emul=m68kelfnbsd
@@ -229,7 +240,10 @@ arm-*-netbsdelf*) targ_emul=armelf_nbsd;
targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;;
arm-*-netbsd*) targ_emul=armnbsd;
targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd" ;;
-arm-*-openbsd*) targ_emul=armnbsd ;;
+armeb-*-openbsd*) targ_emul=armelfb_obsd
+ targ_extra_emuls="armelf_obsd" ;;
+arm-*-openbsd*) targ_emul=armelf_obsd
+ targ_extra_emuls="armelfb_obsd" ;;
arm-*-rtems*) targ_emul=armelf ;;
arm-*-elf) targ_emul=armelf ;;
arm9e-*-elf) targ_emul=armelf ;;
@@ -340,6 +354,7 @@ m68*-*-netbsdelf*) targ_emul=m68kelfnbsd
m68*-*-netbsdaout* | m68*-*-netbsd*)
targ_emul=m68knbsd
targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
@ -42,7 +54,7 @@ $OpenBSD: patch-ld_configure_tgt,v 1.10 2003/07/16 19:17:22 brad Exp $
m68*-*-psos*) targ_emul=m68kpsos ;;
m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
m68*-*-rtems*) targ_emul=m68kelf ;;
@@ -375,6 +387,8 @@ mips*el-*-netbsd*) targ_emul=elf32lmip
@@ -375,6 +390,8 @@ mips*el-*-netbsd*) targ_emul=elf32lmip
mips*-*-netbsd*) targ_emul=elf32bmip
targ_extra_emuls="elf32lmip"
;;
@ -51,7 +63,7 @@ $OpenBSD: patch-ld_configure_tgt,v 1.10 2003/07/16 19:17:22 brad Exp $
mips*-*-bsd*) targ_emul=mipsbig ;;
mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
@@ -415,7 +429,7 @@ alpha*-*-osf*) targ_emul=alpha ;;
@@ -415,7 +432,7 @@ alpha*-*-osf*) targ_emul=alpha ;;
alpha*-*-gnu*) targ_emul=elf64alpha ;;
alpha*-*-netware*) targ_emul=alpha ;;
alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd ;;
@ -60,7 +72,7 @@ $OpenBSD: patch-ld_configure_tgt,v 1.10 2003/07/16 19:17:22 brad Exp $
z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
@@ -431,6 +445,7 @@ powerpc-*-freebsd*) targ_emul=elf32ppc_f
@@ -431,6 +448,7 @@ powerpc-*-freebsd*) targ_emul=elf32ppc_f
targ_extra_libpath=elf32ppc;
tdir_elf32ppcsim=`echo ${targ_alias} | sed -e 's/ppc/ppcsim/'`
;;
@ -68,7 +80,7 @@ $OpenBSD: patch-ld_configure_tgt,v 1.10 2003/07/16 19:17:22 brad Exp $
powerpc*-*-linux*)
case "${targ}" in
*64*) targ_emul=elf64ppc
@@ -454,7 +469,7 @@ powerpc*le-*-elf* | powerpc*le-*-eabi* |
@@ -454,7 +472,7 @@ powerpc*le-*-elf* | powerpc*le-*-eabi* |
targ_extra_emuls="elf32ppcsim" ;;
esac ;;
powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \