diff options
author | Nick Clifton <nickc@redhat.com> | 2000-12-02 00:55:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-12-02 00:55:22 +0000 |
commit | 84ea6cf2c5170547163a4bf09ac2bbb3cd424685 (patch) | |
tree | 1fb075a0ae4d0564fa882e22e5fad7cb13c0de9a /bfd/elf32-mips.c | |
parent | 481294f002ca17aecedd61f586ddef21b278a634 (diff) | |
download | gdb-84ea6cf2c5170547163a4bf09ac2bbb3cd424685.zip gdb-84ea6cf2c5170547163a4bf09ac2bbb3cd424685.tar.gz gdb-84ea6cf2c5170547163a4bf09ac2bbb3cd424685.tar.bz2 |
Add MIPS V and MIPS 64 machine numbers
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index b58eddf..4b0b641 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1810,8 +1810,12 @@ elf_mips_isa (flags) return 3; case E_MIPS_ARCH_4: return 4; + case E_MIPS_ARCH_5: + return 5; case E_MIPS_ARCH_32: return 32; + case E_MIPS_ARCH_64: + return 64; } return 4; } @@ -1862,9 +1866,17 @@ elf_mips_mach (flags) return bfd_mach_mips8000; break; + case E_MIPS_ARCH_5: + return bfd_mach_mips5; + break; + case E_MIPS_ARCH_32: return bfd_mach_mips32; break; + + case E_MIPS_ARCH_64: + return bfd_mach_mips64; + break; } } @@ -2349,6 +2361,14 @@ _bfd_mips_elf_final_write_processing (abfd, linker) case bfd_mach_mips32_4k: val = E_MIPS_ARCH_32 | E_MIPS_MACH_MIPS32_4K; break; + + case bfd_mach_mips5: + val = E_MIPS_ARCH_5; + break; + + case bfd_mach_mips64: + val = E_MIPS_ARCH_64; + break; } elf_elfheader (abfd)->e_flags &= ~(EF_MIPS_ARCH | EF_MIPS_MACH); @@ -2656,8 +2676,12 @@ _bfd_mips_elf_print_private_bfd_data (abfd, ptr) fprintf (file, _(" [mips3]")); else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_4) fprintf (file, _(" [mips4]")); + else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_5) + fprintf (file, _ (" [mips5]")); else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_32) fprintf (file, _ (" [mips32]")); + else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_64) + fprintf (file, _ (" [mips64]")); else fprintf (file, _(" [unknown ISA]")); |