Skip to content

Commit 185390e

Browse files
committed
Update the DWARF sections recognuised by ELF linker scripts.
PR ld/27230 * scripttempl/DWARF.sc: Add DWARF-5 .debug_* sections.
1 parent 0dd1ac8 commit 185390e

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

ld/ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2021-01-27 Nick Clifton <nickc@redhat.com>
2+
3+
Import from mainline:
4+
2021-01-25 Fangrui Song <maskray@google.com>
5+
6+
PR ld/27230
7+
* scripttempl/DWARF.sc: Add DWARF-5 .debug_* sections.
8+
19
2021-01-24 Nick Clifton <nickc@redhat.com>
210

311
* configure: Regenerate.

ld/scripttempl/DWARF.sc

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ cat <<EOF
99
Symbols in the DWARF debugging sections are relative to the beginning
1010
of the section so we begin them at 0. */
1111

12-
/* DWARF 1 */
12+
/* DWARF 1. */
1313
.debug 0 : { *(.debug) }
1414
.line 0 : { *(.line) }
1515

16-
/* GNU DWARF 1 extensions */
16+
/* GNU DWARF 1 extensions. */
1717
.debug_srcinfo 0 : { *(.debug_srcinfo) }
1818
.debug_sfnames 0 : { *(.debug_sfnames) }
1919

20-
/* DWARF 1.1 and DWARF 2 */
20+
/* DWARF 1.1 and DWARF 2. */
2121
.debug_aranges 0 : { *(.debug_aranges) }
2222
.debug_pubnames 0 : { *(.debug_pubnames) }
2323

24-
/* DWARF 2 */
24+
/* DWARF 2. */
2525
.debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
2626
.debug_abbrev 0 : { *(.debug_abbrev) }
2727
.debug_line 0 : { *(.debug_line${RELOCATING+ .debug_line.* .debug_line_end}) }
@@ -30,17 +30,23 @@ cat <<EOF
3030
.debug_loc 0 : { *(.debug_loc) }
3131
.debug_macinfo 0 : { *(.debug_macinfo) }
3232

33-
/* SGI/MIPS DWARF 2 extensions */
33+
/* SGI/MIPS DWARF 2 extensions. */
3434
.debug_weaknames 0 : { *(.debug_weaknames) }
3535
.debug_funcnames 0 : { *(.debug_funcnames) }
3636
.debug_typenames 0 : { *(.debug_typenames) }
3737
.debug_varnames 0 : { *(.debug_varnames) }
3838

39-
/* DWARF 3 */
39+
/* DWARF 3. */
4040
.debug_pubtypes 0 : { *(.debug_pubtypes) }
4141
.debug_ranges 0 : { *(.debug_ranges) }
4242

43-
/* DWARF Extension. */
44-
.debug_macro 0 : { *(.debug_macro) }
43+
/* DWARF 5. */
4544
.debug_addr 0 : { *(.debug_addr) }
45+
.debug_line_str 0 : { *(.debug_line_str) }
46+
.debug_loclists 0 : { *(.debug_loclists) }
47+
.debug_macro 0 : { *(.debug_macro) }
48+
.debug_names 0 : { *(.debug_names) }
49+
.debug_rnglists 0 : { *(.debug_rnglists) }
50+
.debug_str_offsets 0 : { *(.debug_str_offsets) }
51+
.debug_sup 0 : { *(.debug_sup) }
4652
EOF

0 commit comments

Comments
 (0)