diff options
author | Nick Clifton <nickc@redhat.com> | 2005-01-10 16:33:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-01-10 16:33:51 +0000 |
commit | 5c4504f7c53c30ac373de048662365885bd51cb5 (patch) | |
tree | 3e971d44cb8e354482fd78db3f27e03ac6088c06 /bfd/coffcode.h | |
parent | b702665739598ec762119fda6dec4a09adc48fc0 (diff) | |
download | gdb-5c4504f7c53c30ac373de048662365885bd51cb5.zip gdb-5c4504f7c53c30ac373de048662365885bd51cb5.tar.gz gdb-5c4504f7c53c30ac373de048662365885bd51cb5.tar.bz2 |
Add support for maxq10 and maxq20 machine values
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 63a2c63..30560aa 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1989,7 +1989,17 @@ coff_set_arch_mach_hook (abfd, filehdr) #ifdef MAXQ20MAGIC case MAXQ20MAGIC: arch = bfd_arch_maxq; - machine = 0; + switch (internal_f->f_flags & F_MACHMASK) + { + case F_MAXQ10: + machine = bfd_mach_maxq10; + break; + case F_MAXQ20: + machine = bfd_mach_maxq20; + break; + default: + return FALSE; + } break; #endif #ifdef MC88MAGIC @@ -2927,9 +2937,18 @@ coff_set_flags (abfd, magicp, flagsp) #ifdef MAXQ20MAGIC case bfd_arch_maxq: - *magicp = MAXQ20MAGIC; - return TRUE; - break; + * magicp = MAXQ20MAGIC; + switch (bfd_get_mach (abfd)) + { + case bfd_mach_maxq10: + * flagsp = F_MAXQ10; + return TRUE; + case bfd_mach_maxq20: + * flagsp = F_MAXQ20; + return TRUE; + default: + return FALSE; + } #endif default: /* Unknown architecture. */ |