From: niklas Date: Mon, 8 Jan 1996 18:16:01 +0000 (+0000) Subject: Support OpenBSD configuration, by cloning NetBSD config entries. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=30326def2b27c44e7fd4ec7d64d99f8b6b9856d8;p=openbsd Support OpenBSD configuration, by cloning NetBSD config entries. --- diff --git a/gnu/usr.bin/binutils/gas/config/tc-i386.h b/gnu/usr.bin/binutils/gas/config/tc-i386.h index fa529176b71..0d6863abd4d 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-i386.h +++ b/gnu/usr.bin/binutils/gas/config/tc-i386.h @@ -65,6 +65,9 @@ #ifdef TE_NetBSD #define TARGET_FORMAT "a.out-i386-netbsd" #endif +#ifdef TE_OpenBSD +#define TARGET_FORMAT "a.out-i386-openbsd" +#endif #ifdef TE_386BSD #define TARGET_FORMAT "a.out-i386-bsd" #endif diff --git a/gnu/usr.bin/binutils/gas/config/tc-m68k.h b/gnu/usr.bin/binutils/gas/config/tc-m68k.h index 482f0c67bd6..bd53d2d8c4e 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-m68k.h +++ b/gnu/usr.bin/binutils/gas/config/tc-m68k.h @@ -29,10 +29,14 @@ #ifdef TE_NetBSD #define TARGET_FORMAT "a.out-m68k-netbsd" #else +#ifdef TE_OpenBSD +#define TARGET_FORMAT "a.out-m68k-openbsd" +#else #define TARGET_FORMAT "a.out-zero-big" #endif #endif #endif +#endif #ifdef OBJ_ELF #define TARGET_FORMAT "elf32-m68k" diff --git a/gnu/usr.bin/binutils/gas/config/tc-sparc.h b/gnu/usr.bin/binutils/gas/config/tc-sparc.h index cef3b74658e..bfd7e06a97a 100644 --- a/gnu/usr.bin/binutils/gas/config/tc-sparc.h +++ b/gnu/usr.bin/binutils/gas/config/tc-sparc.h @@ -26,9 +26,13 @@ #ifdef TE_NetBSD #define TARGET_FORMAT "a.out-sparc-netbsd" #else +#ifdef TE_OpenBSD +#define TARGET_FORMAT "a.out-sparc-openbsd" +#else #define TARGET_FORMAT "a.out-sunos-big" #endif #endif +#endif #ifdef OBJ_BOUT #define TARGET_FORMAT "b.out.big" #endif diff --git a/gnu/usr.bin/binutils/gas/config/te-obsd.h b/gnu/usr.bin/binutils/gas/config/te-obsd.h new file mode 100644 index 00000000000..469275f8651 --- /dev/null +++ b/gnu/usr.bin/binutils/gas/config/te-obsd.h @@ -0,0 +1,22 @@ +/* te-obsd.h -- OpenBSD target environment declarations. + + Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc. + + This file is part of GAS, the GNU Assembler. + + GAS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GAS is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#define TE_OpenBSD 1 +#include "obj-format.h" diff --git a/gnu/usr.bin/binutils/gas/config/te-obsd532.h b/gnu/usr.bin/binutils/gas/config/te-obsd532.h new file mode 100644 index 00000000000..e87690996f0 --- /dev/null +++ b/gnu/usr.bin/binutils/gas/config/te-obsd532.h @@ -0,0 +1,20 @@ +/* + * This file is te-obsd532.h + * + * Written by Ian Dall originally + * for te-nbsd532.h + * + * 19-Jun-94 + * + */ + +#define TARGET_FORMAT "a.out-ns32k-openbsd" + +#include "obj-format.h" + +/* Maybe these should be more like TC_NS32532 and TC_NS32381 in case + * of conflicts. NS32381 is used in opcode/ns32k.h and that is also + * used by GDB. Need to check. + */ +#define NS32532 +#define NS32381 diff --git a/gnu/usr.bin/binutils/gas/configure b/gnu/usr.bin/binutils/gas/configure index 45e3e3b69d8..81d975b45f1 100644 --- a/gnu/usr.bin/binutils/gas/configure +++ b/gnu/usr.bin/binutils/gas/configure @@ -688,6 +688,7 @@ for this_target in $target $canon_targets ; do i386-*-bsd*) fmt=aout em=386bsd ;; i386-*-netbsd0.8) fmt=aout em=386bsd ;; i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;; + i386-*-openbsd*) fmt=aout em=obsd bfd_gas=yes;; i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;; i386-*-linux*coff*) fmt=coff em=linux targ=i386coff ;; @@ -728,12 +729,14 @@ for this_target in $target $canon_targets ; do m68k-*-lynxos*) fmt=coff targ=m68kcoff em=lynx ;; m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; + m68k-*-openbsd*) fmt=aout em=obsd bfd_gas=yes ;; m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delta88 ;; m88k-*-coff*) fmt=coff targ=m88kcoff ;; # don't change em like *-*-bsd does mips-dec-netbsd*) fmt=elf targ=mips-lit endian=little ;; + mips-dec-openbsd*) fmt=elf targ=mips-lit endian=little ;; mips-dec-bsd*) fmt=aout targ=mips-lit ;; mips-sony-bsd*) fmt=ecoff targ=mips-big ;; mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; @@ -790,6 +793,7 @@ for this_target in $target $canon_targets ; do ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;; ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;; + ns32k-pc532-openbsd*) fmt=aout em=obsd532 ;; sparc-*-sunos4*) fmt=aout em=sun3 ;; sparc-*-aout | sparc*-*-vxworks) @@ -800,6 +804,7 @@ for this_target in $target $canon_targets ; do sparc-*-elf | sparc*-*-solaris*) fmt=elf ;; sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; + sparc-*-openbsd*) fmt=aout em=obsd bfd_gas=yes ;; vax-*-bsd* | vax-*-ultrix*) fmt=aout ;; diff --git a/gnu/usr.bin/binutils/gas/configure.in b/gnu/usr.bin/binutils/gas/configure.in index 0b49d7d5cdd..1c044e40c48 100644 --- a/gnu/usr.bin/binutils/gas/configure.in +++ b/gnu/usr.bin/binutils/gas/configure.in @@ -161,6 +161,7 @@ changequote([,])dnl i386-*-bsd*) fmt=aout em=386bsd ;; i386-*-netbsd0.8) fmt=aout em=386bsd ;; i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;; + i386-*-openbsd*) fmt=aout em=obsd bfd_gas=yes;; i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;; i386-*-linux*coff*) fmt=coff em=linux targ=i386coff ;; @@ -201,12 +202,14 @@ changequote([,])dnl m68k-*-lynxos*) fmt=coff targ=m68kcoff em=lynx ;; m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; + m68k-*-openbsd*) fmt=aout em=obsd bfd_gas=yes ;; m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delta88 ;; m88k-*-coff*) fmt=coff targ=m88kcoff ;; # don't change em like *-*-bsd does mips-dec-netbsd*) fmt=elf targ=mips-lit endian=little ;; + mips-dec-openbsd*) fmt=elf targ=mips-lit endian=little ;; mips-dec-bsd*) fmt=aout targ=mips-lit ;; mips-sony-bsd*) fmt=ecoff targ=mips-big ;; mips-*-bsd*) AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;; @@ -263,6 +266,7 @@ changequote([,])dnl ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;; ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;; + ns32k-pc532-openbsd*) fmt=aout em=obsd532 ;; sparc-*-sunos4*) fmt=aout em=sun3 ;; sparc-*-aout | sparc*-*-vxworks) @@ -273,6 +277,7 @@ changequote([,])dnl sparc-*-elf | sparc*-*-solaris*) fmt=elf ;; sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; + sparc-*-openbsd*) fmt=aout em=obsd bfd_gas=yes ;; vax-*-bsd* | vax-*-ultrix*) fmt=aout ;; diff --git a/gnu/usr.bin/binutils/gas/testsuite/gas/mips/mips.exp b/gnu/usr.bin/binutils/gas/testsuite/gas/mips/mips.exp index e3603bbdffe..79849a9364b 100644 --- a/gnu/usr.bin/binutils/gas/testsuite/gas/mips/mips.exp +++ b/gnu/usr.bin/binutils/gas/testsuite/gas/mips/mips.exp @@ -4,7 +4,7 @@ if [istarget mips*-*-*] then { set svr4pic [expr [istarget *-*-elf*] || [istarget *-*-irix5*] ] set empic [expr [istarget *-*-ecoff*] || [istarget *-*-ultrix*] || [istarget *-*-irix\[1-4\]*] ] - set aout [expr [istarget *-*-bsd*] || [istarget *-*-netbsd*]] + set aout [expr [istarget *-*-bsd*] || [istarget *-*-netbsd*] || [istarget *-*-openbsd*] ] run_dump_test "abs" run_dump_test "add"