public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libebl: Add new DWARF5 debug section names to default_debugscn_p.
@ 2018-04-25 11:25 Mark Wielaard
  2018-05-06 14:22 ` Mark Wielaard
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Wielaard @ 2018-04-25 11:25 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Mark Wielaard

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        | 6 ++++++
 libebl/eblopenbackend.c | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index 66e8aa3..aa82e3a 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 fcf86f6..8b063f4 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",
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libebl: Add new DWARF5 debug section names to default_debugscn_p.
  2018-04-25 11:25 [PATCH] libebl: Add new DWARF5 debug section names to default_debugscn_p Mark Wielaard
@ 2018-05-06 14:22 ` Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2018-05-06 14:22 UTC (permalink / raw)
  To: elfutils-devel

On Wed, Apr 25, 2018 at 01:24:37PM +0200, Mark Wielaard wrote:
> 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.

Pushed to master.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-06 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-25 11:25 [PATCH] libebl: Add new DWARF5 debug section names to default_debugscn_p Mark Wielaard
2018-05-06 14:22 ` Mark Wielaard

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).