[binutils-gdb] Add some more DWARF-5 sections

Nick Clifton nickc@sourceware.org
Mon Jan 25 11:36:02 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9e42b97628f96d8c7f59890e368ddf3a0bd8c811

commit 9e42b97628f96d8c7f59890e368ddf3a0bd8c811
Author: Fangrui Song <maskray@google.com>
Date:   Mon Jan 25 11:35:57 2021 +0000

    Add some more DWARF-5 sections

Diff:
---
 ld/ChangeLog            | 5 +++++
 ld/scripttempl/DWARF.sc | 8 +++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0b7c82e696e..befdf5bceb5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-25  Fangrui Song  <maskray@google.com>
+
+	PR ld/27230
+	* scripttempl/DWARF.sc: Add .debug_* sections.
+
 2021-01-25  Nick Clifton  <nickc@redhat.com>
 
 	* scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
diff --git a/ld/scripttempl/DWARF.sc b/ld/scripttempl/DWARF.sc
index 60210cb5476..dfcdf7aa587 100644
--- a/ld/scripttempl/DWARF.sc
+++ b/ld/scripttempl/DWARF.sc
@@ -41,10 +41,12 @@ cat <<EOF
   .debug_ranges   0 : { *(.debug_ranges) }
 
   /* DWARF 5.  */
+  .debug_addr     0 : { *(.debug_addr) }
+  .debug_line_str 0 : { *(.debug_line_str) }
   .debug_loclists 0 : { *(.debug_loclists) }
+  .debug_macro    0 : { *(.debug_macro) }
+  .debug_names    0 : { *(.debug_names) }
   .debug_rnglists 0 : { *(.debug_rnglists) }
-  .debug_line_str 0 : { *(.debug_line_str) }
   .debug_str_offsets 0 : { *(.debug_str_offsets) }
-  .debug_macro    0 : { *(.debug_macro) }
-  .debug_addr     0 : { *(.debug_addr) }
+  .debug_sup      0 : { *(.debug_sup) }
 EOF


More information about the Binutils-cvs mailing list