summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/bfd')
-rw-r--r--gnu/usr.bin/binutils/bfd/config.bfd3
-rw-r--r--gnu/usr.bin/binutils/bfd/configure1
-rw-r--r--gnu/usr.bin/binutils/bfd/configure.in1
-rw-r--r--gnu/usr.bin/binutils/bfd/ecoff.c3
4 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/bfd/config.bfd b/gnu/usr.bin/binutils/bfd/config.bfd
index d70207ec9c7..ff5d118fd82 100644
--- a/gnu/usr.bin/binutils/bfd/config.bfd
+++ b/gnu/usr.bin/binutils/bfd/config.bfd
@@ -73,6 +73,9 @@ case "${targ}" in
targ_defvec=bfd_elf64_alpha_vec
targ_selvecs=ecoffalpha_little_vec
;;
+ alpha*-*-openbsd*)
+ targ_defvec=ecoffalpha_little_vec
+ ;;
alpha*-*-*vms*)
targ_defvec=vms_alpha_vec
;;
diff --git a/gnu/usr.bin/binutils/bfd/configure b/gnu/usr.bin/binutils/bfd/configure
index 532ea5539a1..a2a761bdfd3 100644
--- a/gnu/usr.bin/binutils/bfd/configure
+++ b/gnu/usr.bin/binutils/bfd/configure
@@ -4434,6 +4434,7 @@ if test "${target}" = "${host}"; then
TRAD_HEADER='"hosts/alphalinux.h"'
;;
alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
+ alpha*-*-openbsd*) COREFILE=netbsd-core.lo ;;
alpha*-*-freebsd*) ;;
alpha*-*-*) COREFILE=osf-core.lo ;;
arm-*-riscix) COREFILE=trad-core.lo ;;
diff --git a/gnu/usr.bin/binutils/bfd/configure.in b/gnu/usr.bin/binutils/bfd/configure.in
index 1b48c2520b5..56487b0b146 100644
--- a/gnu/usr.bin/binutils/bfd/configure.in
+++ b/gnu/usr.bin/binutils/bfd/configure.in
@@ -119,6 +119,7 @@ if test "${target}" = "${host}"; then
TRAD_HEADER='"hosts/alphalinux.h"'
;;
alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
+ alpha*-*-openbsd*) COREFILE=netbsd-core.lo ;;
alpha*-*-freebsd*) ;;
alpha*-*-*) COREFILE=osf-core.lo ;;
arm-*-riscix) COREFILE=trad-core.lo ;;
diff --git a/gnu/usr.bin/binutils/bfd/ecoff.c b/gnu/usr.bin/binutils/bfd/ecoff.c
index 4b136ee1f88..29e6c63f551 100644
--- a/gnu/usr.bin/binutils/bfd/ecoff.c
+++ b/gnu/usr.bin/binutils/bfd/ecoff.c
@@ -226,6 +226,7 @@ _bfd_ecoff_set_arch_mach_hook (abfd, filehdr)
break;
case ALPHA_MAGIC:
+ case ALPHA_MAGIC_BSD:
arch = bfd_arch_alpha;
mach = 0;
break;
@@ -274,7 +275,7 @@ ecoff_get_magic (abfd)
return bfd_big_endian (abfd) ? big : little;
case bfd_arch_alpha:
- return ALPHA_MAGIC;
+ return ALPHA_MAGIC_BSD;
default:
abort ();