summaryrefslogtreecommitdiff
path: root/libebl
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-04-25 12:54:24 +0200
committerMark Wielaard <mark@klomp.org>2018-05-06 16:20:34 +0200
commitce50fccb956238ed7a536397633edb2cc5294627 (patch)
tree333585977774d3afb5c84f6b7199ce62eff96624 /libebl
parent3cc78df8a2ee5d346298c342c3ffeed2d9c59131 (diff)
downloadelfutils-ce50fccb956238ed7a536397633edb2cc5294627.tar.gz
libebl: Add new DWARF5 debug section names to default_debugscn_p.
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>
Diffstat (limited to 'libebl')
-rw-r--r--libebl/ChangeLog6
-rw-r--r--libebl/eblopenbackend.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index 66e8aa30..aa82e3a1 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -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.
diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
index fcf86f6e..8b063f41 100644
--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -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",