Resetting section vma after _bfd_dwarf2_find_nearest_line
Alan Modra
amodra@gmail.com
Wed Feb 8 00:59:46 GMT 2023
More information about the Binutils mailing list
Wed Feb 8 00:59:46 GMT 2023
- Previous message (by thread): Resetting section vma after _bfd_dwarf2_find_nearest_line
- Next message (by thread): Protect mips_hi16_list from fuzzed debug info
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
f.bfd_ptr is set too early to be a reliable indicator of good debug
info.
* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Correct test for
debug info being previously found.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index ab5a9f37ec1..b16ae11e5f2 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -5382,7 +5382,7 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd, bfd *debug_bfd,
{
/* Check that we did previously find some debug information
before attempting to make use of it. */
- if (stash->f.bfd_ptr != NULL)
+ if (stash->f.dwarf_info_size != 0)
{
if (do_place && !place_sections (abfd, stash))
return false;
--
Alan Modra
Australia Development Lab, IBM
- Previous message (by thread): Resetting section vma after _bfd_dwarf2_find_nearest_line
- Next message (by thread): Protect mips_hi16_list from fuzzed debug info
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list