summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-01-25 13:24:52 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-01-25 13:24:52 +0000
commit1c645c8db47c91a78bf9e3142e060b922173a9fa (patch)
treedea49fc4796ed60ba82b38f3bd2f32e0d33715c1 /gnu/usr.bin/binutils
parent715e607ad09ff02a6d54ca9fe356e0a8b7cc4b4f (diff)
hppa64-unknown-openbsd build support; espie@ miod@ brad@ ok
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/Makefile.bsd-wrapper4
-rw-r--r--gnu/usr.bin/binutils/bfd/config.bfd4
-rw-r--r--gnu/usr.bin/binutils/gas/config/te-obsdhppa64.h25
-rw-r--r--gnu/usr.bin/binutils/gas/configure5
-rw-r--r--gnu/usr.bin/binutils/gas/configure.in5
5 files changed, 39 insertions, 4 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.bsd-wrapper b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
index 37119ea081c..4f914c9dc94 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.63 2005/01/15 19:54:04 kettenis Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.64 2005/01/25 13:24:51 mickey Exp $
-NEW_BINUTILS=amd64 alpha arm hppa i386 mips64 powerpc sparc sparc64
+NEW_BINUTILS=alpha amd64 arm hppa hppa64 i386 mips64 powerpc sparc sparc64
.for _arch in ${MACHINE_ARCH}
. if !empty(NEW_BINUTILS:M${_arch})
diff --git a/gnu/usr.bin/binutils/bfd/config.bfd b/gnu/usr.bin/binutils/bfd/config.bfd
index 3e071e3e70e..074f7d0ae3a 100644
--- a/gnu/usr.bin/binutils/bfd/config.bfd
+++ b/gnu/usr.bin/binutils/bfd/config.bfd
@@ -360,6 +360,10 @@ case "${targ}" in
;;
#ifdef BFD64
+ hppa64*-*-openbsd*)
+ targ_defvec=bfd_elf64_hppa_vec
+ targ_selvecs=bfd_elf64_hppa_linux_vec
+ ;;
hppa*64*-*-linux-gnu*)
targ_defvec=bfd_elf64_hppa_linux_vec
targ_selvecs=bfd_elf64_hppa_vec
diff --git a/gnu/usr.bin/binutils/gas/config/te-obsdhppa64.h b/gnu/usr.bin/binutils/gas/config/te-obsdhppa64.h
new file mode 100644
index 00000000000..296dc580e88
--- /dev/null
+++ b/gnu/usr.bin/binutils/gas/config/te-obsdhppa64.h
@@ -0,0 +1,25 @@
+/* te-obsdhppa64.h -- OpenBSD target environment declarations.
+ Copyright 2005
+ 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
+#define LOCAL_LABELS_FB 1
+#define TARGET_ARCH_SIZE 64
+#include "obj-format.h"
diff --git a/gnu/usr.bin/binutils/gas/configure b/gnu/usr.bin/binutils/gas/configure
index ca7b6338b1a..a35663d3dd0 100644
--- a/gnu/usr.bin/binutils/gas/configure
+++ b/gnu/usr.bin/binutils/gas/configure
@@ -4271,7 +4271,10 @@ for this_target in $target $canon_targets ; do
hppa-*-*elf*) fmt=elf em=hppa ;;
hppa-*-lites*) fmt=elf em=hppa ;;
hppa-*-netbsd*) fmt=elf em=nbsd ;;
- hppa-*-openbsd*) fmt=elf em=obsd ;;
+ hppa-*-openbsd*) case ${cpu} in
+ hppa64) fmt=elf em=obsdhppa64 ;;
+ hppa) fmt=elf em=obsd ;;
+ esac ;;
hppa-*-osf*) fmt=som em=hppa ;;
hppa-*-rtems*) fmt=elf em=hppa ;;
hppa-*-hpux11*) case ${cpu} in
diff --git a/gnu/usr.bin/binutils/gas/configure.in b/gnu/usr.bin/binutils/gas/configure.in
index ead9f9fe423..f28993a30c3 100644
--- a/gnu/usr.bin/binutils/gas/configure.in
+++ b/gnu/usr.bin/binutils/gas/configure.in
@@ -241,7 +241,10 @@ changequote([,])dnl
hppa-*-*elf*) fmt=elf em=hppa ;;
hppa-*-lites*) fmt=elf em=hppa ;;
hppa-*-netbsd*) fmt=elf em=nbsd ;;
- hppa-*-openbsd*) fmt=elf em=obsd ;;
+ hppa-*-openbsd*) case ${cpu} in
+ hppa64) fmt=elf em=obsdhppa64 ;;
+ hppa) fmt=elf em=obsd ;;
+ esac ;;
hppa-*-osf*) fmt=som em=hppa ;;
hppa-*-rtems*) fmt=elf em=hppa ;;
hppa-*-hpux11*) case ${cpu} in