diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-02-01 21:42:59 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-02-01 21:42:59 +0000 |
commit | 5cd3dcffbafd0326d887883821bcf4836da7935d (patch) | |
tree | e2e6e3f501c2bb6675427613ced306862cb86141 /bfd/aoutx.h | |
parent | 71c0bae09800eb66f25204b14ffb2dd52190add8 (diff) | |
download | gdb-5cd3dcffbafd0326d887883821bcf4836da7935d.zip gdb-5cd3dcffbafd0326d887883821bcf4836da7935d.tar.gz gdb-5cd3dcffbafd0326d887883821bcf4836da7935d.tar.bz2 |
from ralphc: mips-aout support
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 2c5907d..592bad5 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -595,9 +595,20 @@ DEFUN(NAME(aout,machine_type),(arch, machine), if (machine == 0) arch_flags = M_29K; break; + case bfd_arch_mips: + switch (machine) { + case 0: + case 2000: + case 3000: arch_flags = M_MIPS1; break; + case 4000: + case 4400: + case 6000: arch_flags = M_MIPS2; break; + default: arch_flags = M_UNKNOWN; break; + } + break; + default: arch_flags = M_UNKNOWN; - break; } return arch_flags; } @@ -634,6 +645,7 @@ DEFUN(NAME(aout,set_arch_mach),(abfd, arch, machine), switch (arch) { case bfd_arch_sparc: case bfd_arch_a29k: + case bfd_arch_mips: obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; break; default: |