mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
readelf: Handle E_MIPS_MACH_5900
Fix commit e407c74b5b ("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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user