aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/libaout.h2
-rw-r--r--bfd/netbsd-core.c21
3 files changed, 29 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4e3b85a..56dbeeb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-21 Mark Kettenis <kettenis@gnu.org>
+
+ * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
+ * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
+ arm, m68k, m88k and hppa core files.
+
2004-05-21 Nick Clifton <nickc@redhat.com>
* bfdio.c (bfd_bread): Do not use iovec if it is NULL.
diff --git a/bfd/libaout.h b/bfd/libaout.h
index ddd0a9f..6324239 100644
--- a/bfd/libaout.h
+++ b/bfd/libaout.h
@@ -277,6 +277,8 @@ enum machine_type
M_VAX4K_NETBSD = 150, /* NetBSD/vax 4K pages binary. */
M_MIPS1 = 151, /* MIPS R2000/R3000 binary. */
M_MIPS2 = 152, /* MIPS R4000/R6000 binary. */
+ M_88K_OPENBSD = 153, /* OpenBSD/m88k binary. */
+ M_HPPA_OPENBSD = 154, /* OpenBSD/hppa binary. */
M_SPARC64_NETBSD = 156, /* NetBSD/sparc64 binary. */
M_X86_64_NETBSD = 157, /* NetBSD/amd64 binary. */
M_SPARCLET_2 = 163, /* 0xa3, reserved. */
diff --git a/bfd/netbsd-core.c b/bfd/netbsd-core.c
index 570c0f7..3e6caae 100644
--- a/bfd/netbsd-core.c
+++ b/bfd/netbsd-core.c
@@ -169,6 +169,14 @@ netbsd_core_file_p (abfd)
/* Set architecture from machine ID. */
switch (CORE_GETMID (core))
{
+ case M_ALPHA_NETBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0);
+ break;
+
+ case M_ARM6_NETBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_arm, bfd_mach_arm_3);
+ break;
+
case M_X86_64_NETBSD:
bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_x86_64);
break;
@@ -177,6 +185,19 @@ netbsd_core_file_p (abfd)
bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_i386_i386);
break;
+ case M_68K_NETBSD:
+ case M_68K4K_NETBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_m68k, 0);
+ break;
+
+ case M_88K_OPENBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_m88k, 0);
+ break;
+
+ case M_HPPA_OPENBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_hppa, bfd_mach_hppa11);
+ break;
+
case M_POWERPC_NETBSD:
bfd_default_set_arch_mach (abfd, bfd_arch_powerpc, bfd_mach_ppc);
break;