summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-05 22:59:02 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-05 22:59:02 +0000
commitf708ec40d723c9edf85075ad0f7157ac87628649 (patch)
tree3e41947a6fd1316e206817c0e7ba44567b44edac /gnu/usr.bin/binutils
parent772191eebf6a62b3fe9de2482c910de8c79000d5 (diff)
Support for sparc64. gdb disabled for now.
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/Makefile.bsd-wrapper6
-rw-r--r--gnu/usr.bin/binutils/bfd/config.bfd2
-rw-r--r--gnu/usr.bin/binutils/gas/configure8
-rw-r--r--gnu/usr.bin/binutils/ld/configure.tgt1
4 files changed, 11 insertions, 6 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.bsd-wrapper b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
index 41e3a918d01..bf605fc7827 100644
--- a/gnu/usr.bin/binutils/Makefile.bsd-wrapper
+++ b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.43 2001/03/18 17:39:55 millert Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.44 2001/09/05 22:59:01 art Exp $
-NEW_BINUTILS=alpha mips powerpc hppa
+NEW_BINUTILS=alpha mips powerpc hppa sparc64
SUBDIRS= opcodes bfd
ALL_X11_MODULES=
@@ -16,7 +16,7 @@ MANDIR=${PREFIX}/share/man/cat
MAN= binutils/objdump.1
-.if ${MACHINE_ARCH} != "unknown"
+.if (${MACHINE_ARCH} != "unknown") && (${MACHINE_ARCH} != "sparc64")
SUBDIRS+= gdb mmalloc
MAN+= gdb/gdb.1
ALL_X11_MODULES+=all-gdb
diff --git a/gnu/usr.bin/binutils/bfd/config.bfd b/gnu/usr.bin/binutils/bfd/config.bfd
index 8028b26ed45..623080ccbb4 100644
--- a/gnu/usr.bin/binutils/bfd/config.bfd
+++ b/gnu/usr.bin/binutils/bfd/config.bfd
@@ -79,7 +79,7 @@ case "${targ}" in
alpha*-*-*)
targ_defvec=ecoffalpha_little_vec
;;
- sparc64-*-netbsd*)
+ sparc64-*-netbsd* | sparc64-*-openbsd*)
targ_defvec=bfd_elf64_sparc_vec
targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
;;
diff --git a/gnu/usr.bin/binutils/gas/configure b/gnu/usr.bin/binutils/gas/configure
index 8cad8ae22c7..c1286f4ad8e 100644
--- a/gnu/usr.bin/binutils/gas/configure
+++ b/gnu/usr.bin/binutils/gas/configure
@@ -1885,8 +1885,12 @@ EOF
sparc64) fmt=elf ;;
esac
;;
- sparc-*-openbsd*) fmt=aout em=nbsd ;;
-
+ sparc-*-openbsd*) em=nbsd
+ case ${cpu} in
+ sparc) fmt=aout ;;
+ sparc64) fmt=elf ;;
+ esac
+ ;;
strongarm-*-coff) fmt=coff ;;
strongarm-*-elf) fmt=elf ;;
diff --git a/gnu/usr.bin/binutils/ld/configure.tgt b/gnu/usr.bin/binutils/ld/configure.tgt
index b666667a9ef..8a5cced9539 100644
--- a/gnu/usr.bin/binutils/ld/configure.tgt
+++ b/gnu/usr.bin/binutils/ld/configure.tgt
@@ -56,6 +56,7 @@ sparc*-*-linux-gnu*) targ_emul=elf32_sparc
;;
sparc*-*-lynxos*) targ_emul=sparclynx ;;
sparc64-*-netbsd*) targ_emul=elf64_sparc ;;
+sparc64-*-openbsd*) targ_emul=elf64_sparc ;;
sparc*-*-netbsd*elf*) targ_emul=elf32_sparc ;;
sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
sparc*-*-openbsd*) targ_emul=sparcnbsd ;;