diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-05-21 14:56:07 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-05-21 14:56:07 +0000 |
commit | 8377c19cc4edbdbb66f30996bd0400ff9ec1562a (patch) | |
tree | 01a3a09babd596f5224d720c915d10526037376e | |
parent | 69fd475884c79c9cd482b525babef560faa59041 (diff) | |
download | fsf-binutils-gdb-8377c19cc4edbdbb66f30996bd0400ff9ec1562a.zip fsf-binutils-gdb-8377c19cc4edbdbb66f30996bd0400ff9ec1562a.tar.gz fsf-binutils-gdb-8377c19cc4edbdbb66f30996bd0400ff9ec1562a.tar.bz2 |
* 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.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/libaout.h | 2 | ||||
-rw-r--r-- | bfd/netbsd-core.c | 21 |
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; |