readelf: Handle E_MIPS_MACH_5900
authorMaciej W. Rozycki <macro@imgtec.com>
Thu, 21 Sep 2017 23:54:19 +0000 (00:54 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Thu, 21 Sep 2017 23:54:19 +0000 (00:54 +0100)
commitef272caa7482bd9031e82a2e6f1b81870fe2129e
treeacd0af4fe742c20535abf0c94ef3c244facbb153
parent42c0794e961fd7922ad1358bd7221a8c85278ccc
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.
binutils/ChangeLog
binutils/readelf.c
gas/ChangeLog
gas/testsuite/gas/mips/elf_mach_5900.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp