libebl: Add new DWARF5 debug section names to default_debugscn_p.
authorMark Wielaard <mark@klomp.org>
Wed, 25 Apr 2018 10:54:24 +0000 (12:54 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 6 May 2018 14:20:34 +0000 (16:20 +0200)
This adds the new DWARF5 debug section names .debug_addr, .debug_line_str,
.debug_loclists, .debug_names, .debug_rnglists and .debug_str_offsets. This
makes sure eu-strip knows to strip them away.

Note that it doesn't add the .dwo variants, nor the .dwp only section
names .debug_cu_index and .debug_tu_index, nor the .debug_sup section
for supplemental DWARF files.

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

index 66e8aa3..aa82e3a 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-25  Mark Wielaard  <mark@klomp.org>
+
+       * eblopenbackend.c (default_debugscn_p): Add new DWARF5 sections
+       .debug_addr, .debug_line_str, .debug_loclists, .debug_names,
+       .debug_rnglists and .debug_str_offsets.
+
 2018-04-19  Andreas Schwab  <schwab@suse.de>
 
        * eblopenbackend.c (machines): Add entries for RISC-V.
index fcf86f6..8b063f4 100644 (file)
@@ -640,6 +640,13 @@ default_debugscn_p (const char *name)
       ".gdb_index",
       /* GNU/DWARF 5 extension/proposal */
       ".debug_macro",
+      /* DWARF 5 */
+      ".debug_addr",
+      ".debug_line_str",
+      ".debug_loclists",
+      ".debug_names",
+      ".debug_rnglists",
+      ".debug_str_offsets",
       /* SGI/MIPS DWARF 2 extensions */
       ".debug_weaknames",
       ".debug_funcnames",