* 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.
This commit is contained in:
parent
69fd475884
commit
8377c19cc4
3 changed files with 29 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue