diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2017-09-22 00:54:19 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2017-09-22 00:54:19 +0100 |
commit | ef272caa7482bd9031e82a2e6f1b81870fe2129e (patch) | |
tree | acd0af4fe742c20535abf0c94ef3c244facbb153 /binutils/readelf.c | |
parent | 42c0794e961fd7922ad1358bd7221a8c85278ccc (diff) | |
download | gdb-ef272caa7482bd9031e82a2e6f1b81870fe2129e.zip gdb-ef272caa7482bd9031e82a2e6f1b81870fe2129e.tar.gz gdb-ef272caa7482bd9031e82a2e6f1b81870fe2129e.tar.bz2 |
readelf: Handle E_MIPS_MACH_5900
Fix commit e407c74b5b60 ("Support for MIPS R5900 (Sony Playstation 2)"),
<https://sourceware.org/ml/binutils/2012-12/msg00240.html>, and add the
handling of E_MIPS_MACH_5900, correctly showing `5900' among `Flags:' in
the output of `-h' rather than `unknown CPU'.
binutils/
* readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
gas/
* testsuite/gas/mips/elf_mach_5900.d: New test.
* testsuite/gas/mips/mips.exp: Run it.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index d61417a..9a8226f 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3325,6 +3325,7 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) case E_MIPS_MACH_4650: strcat (buf, ", 4650"); break; case E_MIPS_MACH_5400: strcat (buf, ", 5400"); break; case E_MIPS_MACH_5500: strcat (buf, ", 5500"); break; + case E_MIPS_MACH_5900: strcat (buf, ", 5900"); break; case E_MIPS_MACH_SB1: strcat (buf, ", sb1"); break; case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break; case E_MIPS_MACH_LS2E: strcat (buf, ", loongson-2e"); break; |