Start mass upgrade
[dragora.git] / patches / binutils / 2.35 / binutils-ld-DWARF-5-sections.patch
blob60d42248721ca35c8e8c72ffb72b05325f2113cb
1 --- binutils.orig/ld/scripttempl/DWARF.sc 2021-02-01 10:29:33.596729908 +0000
2 +++ binutils-2.35.1/ld/scripttempl/DWARF.sc 2021-02-01 10:30:00.454552083 +0000
3 @@ -1,4 +1,4 @@
4 -# Copyright (C) 2014-2020 Free Software Foundation, Inc.
5 +# Copyright (C) 2014-2021 Free Software Foundation, Inc.
7 # Copying and distribution of this file, with or without modification,
8 # are permitted in any medium without royalty provided the copyright
9 @@ -9,19 +9,19 @@ cat <<EOF
10 Symbols in the DWARF debugging sections are relative to the beginning
11 of the section so we begin them at 0. */
13 - /* DWARF 1 */
14 + /* DWARF 1. */
15 .debug 0 : { *(.debug) }
16 .line 0 : { *(.line) }
18 - /* GNU DWARF 1 extensions */
19 + /* GNU DWARF 1 extensions. */
20 .debug_srcinfo 0 : { *(.debug_srcinfo) }
21 .debug_sfnames 0 : { *(.debug_sfnames) }
23 - /* DWARF 1.1 and DWARF 2 */
24 + /* DWARF 1.1 and DWARF 2. */
25 .debug_aranges 0 : { *(.debug_aranges) }
26 .debug_pubnames 0 : { *(.debug_pubnames) }
28 - /* DWARF 2 */
29 + /* DWARF 2. */
30 .debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
31 .debug_abbrev 0 : { *(.debug_abbrev) }
32 .debug_line 0 : { *(.debug_line${RELOCATING+ .debug_line.* .debug_line_end}) }
33 @@ -30,17 +30,23 @@ cat <<EOF
34 .debug_loc 0 : { *(.debug_loc) }
35 .debug_macinfo 0 : { *(.debug_macinfo) }
37 - /* SGI/MIPS DWARF 2 extensions */
38 + /* SGI/MIPS DWARF 2 extensions. */
39 .debug_weaknames 0 : { *(.debug_weaknames) }
40 .debug_funcnames 0 : { *(.debug_funcnames) }
41 .debug_typenames 0 : { *(.debug_typenames) }
42 .debug_varnames 0 : { *(.debug_varnames) }
44 - /* DWARF 3 */
45 + /* DWARF 3. */
46 .debug_pubtypes 0 : { *(.debug_pubtypes) }
47 .debug_ranges 0 : { *(.debug_ranges) }
49 - /* DWARF Extension. */
50 - .debug_macro 0 : { *(.debug_macro) }
51 + /* DWARF 5. */
52 .debug_addr 0 : { *(.debug_addr) }
53 + .debug_line_str 0 : { *(.debug_line_str) }
54 + .debug_loclists 0 : { *(.debug_loclists) }
55 + .debug_macro 0 : { *(.debug_macro) }
56 + .debug_names 0 : { *(.debug_names) }
57 + .debug_rnglists 0 : { *(.debug_rnglists) }
58 + .debug_str_offsets 0 : { *(.debug_str_offsets) }
59 + .debug_sup 0 : { *(.debug_sup) }
60 EOF