aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/scripttempl/DWARF.sc8
2 files changed, 10 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0b7c82e..befdf5b 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 60210cb..dfcdf7a 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