GNU Binutils with patches for OS216
修订版 | 919383ac718c2a3187ee2a9ad659daa22da26258 (tree) |
---|---|
时间 | 2017-04-26 05:10:53 |
作者 | Maciej W. Rozycki <macro@imgt...> |
Commiter | Maciej W. Rozycki |
MIPS/readelf: Remove extraneous null GOT data check
Null data is handled gracefully throughout in MIPS GOT processing, with
addresses printed normally and unavailable data shown as <unknown>' by
print_mips_got_entry', and special processing code for GOT[1] doing an
explicit check. Remove an unwanted null GOT data check then, introduced
with commit 592458412fb2 in the course of addressing PR binutils/12855.
binutils/
* readelf.c (process_mips_specific): Remove null GOT data check.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2017-04-25 Maciej W. Rozycki <macro@imgtec.com> |
2 | 2 | |
3 | + * readelf.c (process_mips_specific): Remove null GOT data check. | |
4 | + | |
5 | +2017-04-25 Maciej W. Rozycki <macro@imgtec.com> | |
6 | + | |
3 | 7 | * testsuite/binutils-all/mips/mips16-alias.d: New test. |
4 | 8 | * testsuite/binutils-all/mips/mips16-noalias.d: New test. |
5 | 9 | * testsuite/binutils-all/mips/mips16-alias.s: New test source. |
@@ -15483,8 +15483,7 @@ process_mips_specific (FILE * file) | ||
15483 | 15483 | data = (unsigned char *) get_data (NULL, file, offset, |
15484 | 15484 | global_end - pltgot, 1, |
15485 | 15485 | _("Global Offset Table data")); |
15486 | - if (data == NULL) | |
15487 | - return FALSE; | |
15486 | + /* PR 12855: Null data is handled gracefully throughout. */ | |
15488 | 15487 | data_end = data + (global_end - pltgot); |
15489 | 15488 | |
15490 | 15489 | printf (_("\nPrimary GOT:\n")); |