]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
MIPS/readelf: Simplify GOT[1] data availability check
authorMaciej W. Rozycki <macro@imgtec.com>
Tue, 11 Apr 2017 23:03:41 +0000 (00:03 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Tue, 25 Apr 2017 20:11:49 +0000 (21:11 +0100)
commitc4ab9505b53cdc899506ed421fddb7e1f8faf7a3
tree353e41fc77426895897c5e2bb6575278b0f5c79b
parent919383ac718c2a3187ee2a9ad659daa22da26258
MIPS/readelf: Simplify GOT[1] data availability check

Unavailable data is handled gracefully in MIPS GOT processing done by
`print_mips_got_entry', so all that is needed in special GOT[1] handling
is to verify whether data can be retrieved for the purpose of the GNU
marker check done with `byte_get'.  Remove the extra error reporting
code then, introduced with commit 75ec1fdbb797 ("Fix runtime seg-fault
in readelf when parsing a corrupt MIPS binary.") in the course of
addressing PR binutils/21344, and defer the error case to regular local
GOT entry processing.

binutils/
* readelf.c (process_mips_specific): Remove error reporting from
GOT[1] processing.
binutils/ChangeLog
binutils/readelf.c