projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9245f0
)
Re: Resetting section vma after _bfd_dwarf2_find_nearest_line
author
Alan Modra
<amodra@gmail.com>
Wed, 8 Feb 2023 00:23:59 +0000
(10:53 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 8 Feb 2023 00:47:00 +0000
(11:17 +1030)
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.
bfd/dwarf2.c
patch
|
blob
|
history
diff --git
a/bfd/dwarf2.c
b/bfd/dwarf2.c
index ab5a9f37ec194e2fe941013266c2d0049c579a24..b16ae11e5f275ef5a1134278c3681b4d2a456b97 100644
(file)
--- 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;