mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
Fix: readelf: loc_offset XX too big
PR 30355 * dwarf.c (read_and_display_attr_value): Correctly handle DW_loclistx attributes that index a version 5 .debug_loclists section.
This commit is contained in:
parent
ac164fa854
commit
28ab94f51d
@ -1,8 +1,15 @@
|
||||
2023-04-19 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 30355
|
||||
* dwarf.c (read_and_display_attr_value): Correctly handle
|
||||
DW_loclistx attributes that index a version 5 .debug_loclists
|
||||
section.
|
||||
|
||||
2023-04-17 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 30142
|
||||
* rescoff.c (write_coff_file): Add the SEC_READONLY flag to the
|
||||
.rsrc section.
|
||||
.rsrc section.
|
||||
|
||||
2023-04-11 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
|
@ -2725,7 +2725,7 @@ read_and_display_attr_value (unsigned long attribute,
|
||||
if (idx != (uint64_t) -1)
|
||||
idx += (offset_size == 8) ? 20 : 12;
|
||||
}
|
||||
else if (debug_info_p == NULL)
|
||||
else if (debug_info_p == NULL || dwarf_version > 4)
|
||||
{
|
||||
idx = fetch_indexed_value (uvalue, loclists, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user