BFD library: Use entry 0 in directory and filename tables of DWARF-5 debug info.
authorNick Clifton <nickc@redhat.com>
Tue, 30 Aug 2022 15:01:20 +0000 (16:01 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 30 Aug 2022 15:01:20 +0000 (16:01 +0100)
commit37833b966576c5d25e797ea3b6c33d0459a71892
tree950457c7d8e2c43f6c45823e2430d4602bb3f98c
parentf79688953fb09dbe5c0ecf33a8db15054d49fb8d
BFD library: Use entry 0 in directory and filename tables of DWARF-5 debug info.

PR 29529
* dwarf2.c (struct line_info_table): Add new field:
use_dir_and_file_0.
(concat_filename): Use new field to help select the correct table
slot.
(read_formatted_entries): Do not skip entry 0.
(decode_line_info): Set new field depending upon the version of
DWARF being parsed.  Initialise filename based upon the setting of
the new field.
bfd/ChangeLog
bfd/dwarf2.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr27587.err