aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/dwarf2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 8eb7b11..151ed02 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -2916,10 +2916,9 @@ decode_line_info (struct comp_unit *unit)
if (table->num_files)
{
- if (table->use_dir_and_file_0)
- filename = concat_filename (table, 0);
- else
- filename = concat_filename (table, 1);
+ /* PR 30783: Always start with a file index of 1, even
+ for DWARF-5. */
+ filename = concat_filename (table, 1);
}
/* Decode the table. */