From 61916679852dca633776938b03c018c12036f6af Mon Sep 17 00:00:00 2001 From: niklas Date: Mon, 8 Jan 1996 22:16:07 +0000 Subject: [PATCH] Add OpenBSD configuration, it's exactly like NetBSD. --- gnu/usr.bin/binutils/bfd/config.bfd | 27 +++++++++++++++++++ gnu/usr.bin/binutils/bfd/configure | 35 +++++++++++++++++++++++++ gnu/usr.bin/binutils/bfd/configure.host | 1 + gnu/usr.bin/binutils/bfd/configure.in | 22 ++++++++++++++++ 4 files changed, 85 insertions(+) diff --git a/gnu/usr.bin/binutils/bfd/config.bfd b/gnu/usr.bin/binutils/bfd/config.bfd index a03f978d738..5d93cd6b734 100644 --- a/gnu/usr.bin/binutils/bfd/config.bfd +++ b/gnu/usr.bin/binutils/bfd/config.bfd @@ -138,6 +138,11 @@ case "${targ}" in targ_selvecs=i386bsd_vec targ_underscore=yes ;; + i[345]86-*-openbsd*) + targ_defvec=i386netbsd_vec + targ_selvecs=i386bsd_vec + targ_underscore=yes + ;; i[345]86-*-netware*) targ_defvec=bfd_elf32_i386_vec targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec" @@ -257,6 +262,16 @@ case "${targ}" in targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" targ_underscore=yes ;; + m68*-hp*-openbsd*) + targ_defvec=m68k4knetbsd_vec + targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec" + targ_underscore=yes + ;; + m68*-*-openbsd*) + targ_defvec=m68knetbsd_vec + targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" + targ_underscore=yes + ;; m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \ m68*-*-bsd* | m68*-*-vsta*) targ_defvec=sunos_big_vec @@ -289,6 +304,10 @@ case "${targ}" in targ_defvec=bfd_elf32_littlemips_vec targ_selvecs=bfd_elf32_bigmips_vec ;; + mips-dec-openbsd*) + targ_defvec=bfd_elf32_littlemips_vec + targ_selvecs=bfd_elf32_bigmips_vec + ;; mips*-dec-bsd*) targ_defvec=aout_mips_little_vec targ_underscore=yes @@ -342,6 +361,10 @@ case "${targ}" in targ_defvec=pc532netbsd_vec targ_underscore=yes ;; + ns32k-*-openbsd*) + targ_defvec=pc532netbsd_vec + targ_underscore=yes + ;; powerpc-*-aix*) targ_defvec=rs6000coff_vec @@ -385,6 +408,10 @@ case "${targ}" in targ_defvec=sparcnetbsd_vec targ_underscore=yes ;; + sparc-*-openbsd*) + targ_defvec=sparcnetbsd_vec + targ_underscore=yes + ;; sparc-*-solaris2* | sparc-*-sysv4*) targ_defvec=bfd_elf32_sparc_vec targ_selvecs=sunos_big_vec diff --git a/gnu/usr.bin/binutils/bfd/configure b/gnu/usr.bin/binutils/bfd/configure index adb5e46e008..ceb063914a4 100644 --- a/gnu/usr.bin/binutils/bfd/configure +++ b/gnu/usr.bin/binutils/bfd/configure @@ -1060,6 +1060,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/i386nbsd.h" +EOF + + ;; + i[345]86-*-openbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/i386nbsd.h" EOF ;; @@ -1118,6 +1125,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/mipsnbsd.h" +EOF + + ;; + mips-*-openbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/mipsnbsd.h" EOF ;; @@ -1185,6 +1199,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/m68knbsd.h" +EOF + + ;; + m68*-*-openbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/m68knbsd.h" EOF ;; @@ -1208,6 +1229,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/ns32knbsd.h" +EOF + + ;; + ns32k-*-openbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/ns32knbsd.h" EOF ;; @@ -1220,6 +1248,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/sparcnbsd.h" +EOF + + ;; + sparc-*-openbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/sparcnbsd.h" EOF ;; diff --git a/gnu/usr.bin/binutils/bfd/configure.host b/gnu/usr.bin/binutils/bfd/configure.host index 41af344620c..7ea144a353e 100644 --- a/gnu/usr.bin/binutils/bfd/configure.host +++ b/gnu/usr.bin/binutils/bfd/configure.host @@ -54,6 +54,7 @@ i[345]86-*-win32) test -z "$CC" && CC="i386-win32-gcc -O2" ;; mips-dec-netbsd*) ;; +mips-dec-openbsd*) ;; mips-dec-*) HDEFINES="-G 4" ;; mips-sgi-irix3*) HDEFINES="-G 4" test -z "$LDFLAGS" && LDFLAGS=-lmalloc diff --git a/gnu/usr.bin/binutils/bfd/configure.in b/gnu/usr.bin/binutils/bfd/configure.in index 8d649011eaf..93b0ca8e091 100644 --- a/gnu/usr.bin/binutils/bfd/configure.in +++ b/gnu/usr.bin/binutils/bfd/configure.in @@ -138,6 +138,12 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h") ;; +changequote(,)dnl + i[345]86-*-openbsd*) +changequote([,])dnl + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h") + ;; changequote(,)dnl i[345]86-esix-sysv3*) changequote([,])dnl @@ -182,6 +188,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h") ;; + mips-*-openbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h") + ;; mips-dec-*) COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/decstation.h") @@ -222,6 +232,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h") ;; + m68*-*-openbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h") + ;; m88*-*-sysv4*) ;; m88*-motorola-sysv*) COREFILE=ptrace-core.o ;; m88*-*-mach3*) @@ -236,6 +250,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/ns32knbsd.h") ;; + ns32k-*-openbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/ns32knbsd.h") + ;; rs6000-*-lynx*) COREFILE=lynx-core.o ;; rs6000-*-aix4*) COREFILE=rs6000-core.o ;; rs6000-*-*) COREFILE=rs6000-core.o ;; @@ -245,6 +263,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h") ;; + sparc-*-openbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h") + ;; tahoe-*-*) COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/tahoe.h") -- 2.20.1