Skip to content

Commit 4170bc7

Browse files
committed
Re: Resetting section vma after _bfd_dwarf2_find_nearest_line
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.
1 parent c9245f0 commit 4170bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bfd/dwarf2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5382,7 +5382,7 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd, bfd *debug_bfd,
53825382
{
53835383
/* Check that we did previously find some debug information
53845384
before attempting to make use of it. */
5385-
if (stash->f.bfd_ptr != NULL)
5385+
if (stash->f.dwarf_info_size != 0)
53865386
{
53875387
if (do_place && !place_sections (abfd, stash))
53885388
return false;

0 commit comments

Comments
 (0)