]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elflint: Handle .debug_line_str as .debug_str
authorMark Wielaard <mark@klomp.org>
Fri, 4 Sep 2020 23:17:06 +0000 (01:17 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 4 Sep 2020 23:17:12 +0000 (01:17 +0200)
The new DWARF5 .debug_line_str is identical to the .debug_str section.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/elflint.c

index 8eb2103d93db287e6782e90b4a16354767fb69f3..e37f3587144cb5688bacc0a14cbc3c87bdae69ef 100644 (file)
@@ -1,3 +1,7 @@
+2020-09-04  Mark Wielaard  <mark@klomp.org>
+
+       * elflint.c (special_sections): Add .debug_line_str.
+
 2020-08-26  Mark Wielaard  <mark@klomp.org>
 
        * readelf.c (print_debug_line_section): It is not an error if there
index 9cdccccae812967ae05d9ba4d4b7fd16c6129059..ef3e373261e1e7fb94564fa33bb27d915729357e 100644 (file)
@@ -3631,6 +3631,7 @@ static const struct
     { ".data", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 },
     { ".data1", 7, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 },
     { ".debug_str", 11, SHT_PROGBITS, exact_or_gnuld, SHF_MERGE | SHF_STRINGS, 0 },
+    { ".debug_line_str", 16, SHT_PROGBITS, exact_or_gnuld, SHF_MERGE | SHF_STRINGS, 0 },
     { ".debug", 6, SHT_PROGBITS, exact, 0, 0 },
     { ".dynamic", 9, SHT_DYNAMIC, atleast, SHF_ALLOC, SHF_WRITE },
     { ".dynstr", 8, SHT_STRTAB, exact, SHF_ALLOC, 0 },