diff options
author | Alan Modra <amodra@gmail.com> | 2023-02-23 12:54:09 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-02-23 12:58:53 +1030 |
commit | 456481c6d634819b713eb88fc629a09b4e955aa3 (patch) | |
tree | f22334b390cf991397a462065c19e1a798f8527b /bfd | |
parent | 98571cade24f890418faf183a21a3a4f0129f960 (diff) | |
download | gdb-456481c6d634819b713eb88fc629a09b4e955aa3.zip gdb-456481c6d634819b713eb88fc629a09b4e955aa3.tar.gz gdb-456481c6d634819b713eb88fc629a09b4e955aa3.tar.bz2 |
dwarf1 .line SEC_HAS_CONTENTS
* dwarf1.c (parse_line_table): Ignore .line without SEC_HAS_CONTENTS.
Formatting.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/dwarf1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c index 9046100..a80d19d 100644 --- a/bfd/dwarf1.c +++ b/bfd/dwarf1.c @@ -301,13 +301,13 @@ parse_line_table (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit) bfd_size_type size; msec = bfd_get_section_by_name (stash->abfd, ".line"); - if (! msec) + if (! msec || (msec->flags & SEC_HAS_CONTENTS) == 0) return false; size = msec->rawsize ? msec->rawsize : msec->size; stash->line_section - = bfd_simple_get_relocated_section_contents - (stash->abfd, msec, NULL, stash->syms); + = bfd_simple_get_relocated_section_contents (stash->abfd, msec, NULL, + stash->syms); if (! stash->line_section) return false; |