Fix initiali state of DWARF v5 line number table in BFD library

PR 30783
This commit is contained in:
Nick Clifton 2024-04-29 10:03:56 +01:00
parent c541d53765
commit d1765f5db3
2 changed files with 4 additions and 5 deletions

View File

@ -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. */

View File

@ -1,3 +1,3 @@
#...
.*pr27587/<artificial>:4:\(.*\): undefined reference to `stack_size'
.*pr27587/pr27587.i:4:\(.*\): undefined reference to `stack_size'
#...