This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Add separate debug info file section
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 14 Oct 2016 22:44:37 +1030
- Subject: Add separate debug info file section
- Authentication-results: sourceware.org; auth=none
So that it isn't treated as an orphan. eg. with --unique.
I'll apply this to the branch too.
* scripttempl/DWARF.sc: Add .debug_addr.
diff --git a/ld/scripttempl/DWARF.sc b/ld/scripttempl/DWARF.sc
index a8bcb97..cbb2999 100644
--- a/ld/scripttempl/DWARF.sc
+++ b/ld/scripttempl/DWARF.sc
@@ -42,4 +42,5 @@ cat <<EOF
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
+ .debug_addr 0 : { *(.debug_addr) }
EOF
--
Alan Modra
Australia Development Lab, IBM