From: Mark Kettenis Date: Fri, 21 May 2004 14:56:07 +0000 (+0000) Subject: * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8377c19cc4edbdbb66f30996bd0400ff9ec1562a;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4e3b85add76..56dbeeb4a02 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2004-05-21 Mark Kettenis + + * 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 * bfdio.c (bfd_bread): Do not use iovec if it is NULL. diff --git a/bfd/libaout.h b/bfd/libaout.h index ddd0a9fd2a3..63242391359 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 570c0f750ac..3e6caaeaeb7 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;