diff options
author | John Delsignor <john.delsignore@roguewave.com> | 2017-04-10 16:27:05 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-04-10 16:27:05 +0100 |
commit | 28d909e539567ab5ecd2bc20680e933869fdf889 (patch) | |
tree | 472357372c338285ecd293121d00252a6f37062c /binutils/dwarf.c | |
parent | a70f34c01c7f250858bd62df245c241263200f63 (diff) | |
download | gdb-28d909e539567ab5ecd2bc20680e933869fdf889.zip gdb-28d909e539567ab5ecd2bc20680e933869fdf889.tar.gz gdb-28d909e539567ab5ecd2bc20680e933869fdf889.tar.bz2 |
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.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index fdfbc16..559d6f8 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -7670,7 +7670,7 @@ display_gdb_index (struct dwarf_section *section, symbol_table = start + symbol_table_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")); return 0; |