mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
Prevent a bigus warning from readelf about a gdb-index table being too big.
PR binutils/21319 * dwarf.c (display_gdb_index): Correct test for a corrupt address table size.
This commit is contained in:

committed by
Nick Clifton

parent
a70f34c01c
commit
28d909e539
@ -1,3 +1,9 @@
|
|||||||
|
2017-04-10 John Delsignor <john.delsignore@roguewave.com>
|
||||||
|
|
||||||
|
PR binutils/21319
|
||||||
|
* dwarf.c (display_gdb_index): Correct test for a corrupt address
|
||||||
|
table size.
|
||||||
|
|
||||||
2017-04-05 Jiong Wang <jiong.wang@arm.com>
|
2017-04-05 Jiong Wang <jiong.wang@arm.com>
|
||||||
|
|
||||||
* objcopy.c (struct redefine_node): Delete the field "next".
|
* objcopy.c (struct redefine_node): Delete the field "next".
|
||||||
|
@ -7670,7 +7670,7 @@ display_gdb_index (struct dwarf_section *section,
|
|||||||
symbol_table = start + symbol_table_offset;
|
symbol_table = start + symbol_table_offset;
|
||||||
constant_pool = start + constant_pool_offset;
|
constant_pool = start + constant_pool_offset;
|
||||||
|
|
||||||
if (address_table + address_table_size * (2 + 8 + 4) > section->start + section->size)
|
if (address_table + address_table_size > section->start + section->size)
|
||||||
{
|
{
|
||||||
warn (_("Address table extends beyond end of section.\n"));
|
warn (_("Address table extends beyond end of section.\n"));
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user