* [binutils-gdb] Fix initiali state of DWARF v5 line number table in BFD library
@ 2024-04-29 9:05 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2024-04-29 9:05 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1765f5db3f9d1c75a3e1b06f0182db40afbbdc9
commit d1765f5db3f9d1c75a3e1b06f0182db40afbbdc9
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Apr 29 10:03:56 2024 +0100
Fix initiali state of DWARF v5 line number table in BFD library
PR 30783
Diff:
---
bfd/dwarf2.c | 7 +++----
ld/testsuite/ld-x86-64/pr27587.err | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 8eb7b11e1ca..151ed0237ca 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. */
diff --git a/ld/testsuite/ld-x86-64/pr27587.err b/ld/testsuite/ld-x86-64/pr27587.err
index 9ccca0aec38..b5c6fbaffa5 100644
--- a/ld/testsuite/ld-x86-64/pr27587.err
+++ b/ld/testsuite/ld-x86-64/pr27587.err
@@ -1,3 +1,3 @@
#...
-.*pr27587/<artificial>:4:\(.*\): undefined reference to `stack_size'
+.*pr27587/pr27587.i:4:\(.*\): undefined reference to `stack_size'
#...
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-29 9:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-29 9:05 [binutils-gdb] Fix initiali state of DWARF v5 line number table in BFD library Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).