Blame SOURCES/binutils-ld-DWARF-5-sections.patch

2e9b04
--- binutils.orig/ld/scripttempl/DWARF.sc	2021-02-01 10:29:33.596729908 +0000
2e9b04
+++ binutils-2.35.1/ld/scripttempl/DWARF.sc	2021-02-01 10:30:00.454552083 +0000
2e9b04
@@ -1,4 +1,4 @@
2e9b04
-# Copyright (C) 2014-2020 Free Software Foundation, Inc.
2e9b04
+# Copyright (C) 2014-2021 Free Software Foundation, Inc.
2e9b04
 #
2e9b04
 # Copying and distribution of this file, with or without modification,
2e9b04
 # are permitted in any medium without royalty provided the copyright
2e9b04
@@ -9,19 +9,19 @@ cat <
2e9b04
      Symbols in the DWARF debugging sections are relative to the beginning
2e9b04
      of the section so we begin them at 0.  */
2e9b04
 
2e9b04
-  /* DWARF 1 */
2e9b04
+  /* DWARF 1.  */
2e9b04
   .debug          0 : { *(.debug) }
2e9b04
   .line           0 : { *(.line) }
2e9b04
 
2e9b04
-  /* GNU DWARF 1 extensions */
2e9b04
+  /* GNU DWARF 1 extensions.  */
2e9b04
   .debug_srcinfo  0 : { *(.debug_srcinfo) }
2e9b04
   .debug_sfnames  0 : { *(.debug_sfnames) }
2e9b04
 
2e9b04
-  /* DWARF 1.1 and DWARF 2 */
2e9b04
+  /* DWARF 1.1 and DWARF 2.  */
2e9b04
   .debug_aranges  0 : { *(.debug_aranges) }
2e9b04
   .debug_pubnames 0 : { *(.debug_pubnames) }
2e9b04
 
2e9b04
-  /* DWARF 2 */
2e9b04
+  /* DWARF 2.  */
2e9b04
   .debug_info     0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
2e9b04
   .debug_abbrev   0 : { *(.debug_abbrev) }
2e9b04
   .debug_line     0 : { *(.debug_line${RELOCATING+ .debug_line.* .debug_line_end}) }
2e9b04
@@ -30,17 +30,23 @@ cat <
2e9b04
   .debug_loc      0 : { *(.debug_loc) }
2e9b04
   .debug_macinfo  0 : { *(.debug_macinfo) }
2e9b04
 
2e9b04
-  /* SGI/MIPS DWARF 2 extensions */
2e9b04
+  /* SGI/MIPS DWARF 2 extensions.  */
2e9b04
   .debug_weaknames 0 : { *(.debug_weaknames) }
2e9b04
   .debug_funcnames 0 : { *(.debug_funcnames) }
2e9b04
   .debug_typenames 0 : { *(.debug_typenames) }
2e9b04
   .debug_varnames  0 : { *(.debug_varnames) }
2e9b04
 
2e9b04
-  /* DWARF 3 */
2e9b04
+  /* DWARF 3.  */
2e9b04
   .debug_pubtypes 0 : { *(.debug_pubtypes) }
2e9b04
   .debug_ranges   0 : { *(.debug_ranges) }
2e9b04
 
2e9b04
-  /* DWARF Extension.  */
2e9b04
-  .debug_macro    0 : { *(.debug_macro) }
2e9b04
+  /* DWARF 5.  */
2e9b04
   .debug_addr     0 : { *(.debug_addr) }
2e9b04
+  .debug_line_str 0 : { *(.debug_line_str) }
2e9b04
+  .debug_loclists 0 : { *(.debug_loclists) }
2e9b04
+  .debug_macro    0 : { *(.debug_macro) }
2e9b04
+  .debug_names    0 : { *(.debug_names) }
2e9b04
+  .debug_rnglists 0 : { *(.debug_rnglists) }
2e9b04
+  .debug_str_offsets 0 : { *(.debug_str_offsets) }
2e9b04
+  .debug_sup      0 : { *(.debug_sup) }
2e9b04
 EOF