diff options
author | Nicholas Duffek <nsd@redhat.com> | 2000-06-16 20:45:33 +0000 |
---|---|---|
committer | Nicholas Duffek <nsd@redhat.com> | 2000-06-16 20:45:33 +0000 |
commit | a00f5b7c58505db6d7f3b147198ab841f240fdfd (patch) | |
tree | 5f612cce3d81275e0ac9725b0f7c5be4513e1652 /bfd/coffcode.h | |
parent | 4c80de28dbf27a56aa47829927daa0f23d748845 (diff) | |
download | gdb-a00f5b7c58505db6d7f3b147198ab841f240fdfd.tar.gz |
* archures.c (enum bfd_architecture): #define constants for
PowerPc and RS6000 machine numbers.
* bfd-in2.h: Regenerate.
* coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
and RS6000 machine numbers using #defined constants from
archures.c.
* cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
machine numbers using #defined constants from archures.c. Add
entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
64-bit words in 620 entry.
* cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
RSC, and RS2.
(bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 3f155b85e09..93444988678 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1966,32 +1966,33 @@ coff_set_arch_mach_hook (abfd, filehdr) (because that's how they were bootstrapped originally), but they are always PowerPC architecture. */ arch = bfd_arch_powerpc; - machine = 0; + machine = bfd_mach_ppc; #else - arch = bfd_arch_rs6000; #ifdef XCOFF64 - machine = 620; + arch = bfd_arch_powerpc; + machine = bfd_mach_ppc_620; #else - machine = 6000; + arch = bfd_arch_rs6000; + machine = bfd_mach_rs6k; #endif #endif /* POWERMAC */ break; case 1: arch = bfd_arch_powerpc; - machine = 601; + machine = bfd_mach_ppc_601; break; case 2: /* 64 bit PowerPC */ arch = bfd_arch_powerpc; - machine = 620; + machine = bfd_mach_ppc_620; break; case 3: arch = bfd_arch_powerpc; - machine = 0; + machine = bfd_mach_ppc; break; case 4: arch = bfd_arch_rs6000; - machine = 6000; + machine = bfd_mach_rs6k; break; } } @@ -2698,7 +2699,8 @@ coff_set_flags (abfd, magicp, flagsp) case bfd_arch_powerpc: #endif #ifdef XCOFF64 - if (bfd_get_mach (abfd) == 620 && !strncmp (abfd->xvec->name,"aix", 3)) + if (bfd_get_mach (abfd) == bfd_mach_ppc_620 + && !strncmp (abfd->xvec->name,"aix", 3)) *magicp = U803XTOCMAGIC; else #else |