1/* SPDX-License-Identifier: Apache-2.0 */ 2/* Please keep in sync with cmake/linker_script/common/debug-sections.cmake */ 3 4 /* following sections are obtained via 'ld --verbose' */ 5 6 /* Stabs debugging sections. */ 7 SECTION_PROLOGUE(.stab, 0,) { *(.stab) } 8 SECTION_PROLOGUE(.stabstr, 0,) { *(.stabstr) } 9 SECTION_PROLOGUE(.stab.excl, 0,) { *(.stab.excl) } 10 SECTION_PROLOGUE(.stab.exclstr, 0,) { *(.stab.exclstr) } 11 SECTION_PROLOGUE(.stab.index, 0,) { *(.stab.index) } 12 SECTION_PROLOGUE(.stab.indexstr, 0,) { *(.stab.indexstr) } 13 SECTION_PROLOGUE(.gnu.build.attributes, 0,) { *(.gnu.build.attributes .gnu.build.attributes.*) } 14 SECTION_PROLOGUE(.comment, 0,) { *(.comment) } 15 /* DWARF debug sections. 16 Symbols in the DWARF debugging sections are relative to the beginning 17 of the section so we begin them at 0. */ 18 /* DWARF 1 */ 19 SECTION_PROLOGUE(.debug, 0,) { *(.debug) } 20 SECTION_PROLOGUE(.line, 0,) { *(.line) } 21 /* GNU DWARF 1 extensions */ 22 SECTION_PROLOGUE(.debug_srcinfo, 0,) { *(.debug_srcinfo) } 23 SECTION_PROLOGUE(.debug_sfnames, 0,) { *(.debug_sfnames) } 24 /* DWARF 1.1 and DWARF 2 */ 25 SECTION_PROLOGUE(.debug_aranges, 0,) { *(.debug_aranges) } 26 SECTION_PROLOGUE(.debug_pubnames, 0,) { *(.debug_pubnames) } 27 /* DWARF 2 */ 28 SECTION_PROLOGUE(.debug_info, 0,) { *(.debug_info .gnu.linkonce.wi.*) } 29 SECTION_PROLOGUE(.debug_abbrev, 0,) { *(.debug_abbrev) } 30 SECTION_PROLOGUE(.debug_line, 0,) { *(.debug_line .debug_line.* .debug_line_end ) } 31 SECTION_PROLOGUE(.debug_frame, 0,) { *(.debug_frame) } 32 SECTION_PROLOGUE(.debug_str, 0,) { *(.debug_str) } 33 SECTION_PROLOGUE(.debug_loc, 0,) { *(.debug_loc) } 34 SECTION_PROLOGUE(.debug_macinfo, 0,) { *(.debug_macinfo) } 35 /* SGI/MIPS DWARF 2 extensions */ 36 SECTION_PROLOGUE(.debug_weaknames, 0,) { *(.debug_weaknames) } 37 SECTION_PROLOGUE(.debug_funcnames, 0,) { *(.debug_funcnames) } 38 SECTION_PROLOGUE(.debug_typenames, 0,) { *(.debug_typenames) } 39 SECTION_PROLOGUE(.debug_varnames, 0,) { *(.debug_varnames) } 40 /* DWARF 3 */ 41 SECTION_PROLOGUE(.debug_pubtypes, 0,) { *(.debug_pubtypes) } 42 SECTION_PROLOGUE(.debug_ranges, 0,) { *(.debug_ranges) } 43 /* DWARF 5 */ 44 SECTION_PROLOGUE(.debug_addr, 0,) { *(.debug_addr) } 45 SECTION_PROLOGUE(.debug_line_str, 0,) { *(.debug_line_str) } 46 SECTION_PROLOGUE(.debug_loclists, 0,) { *(.debug_loclists) } 47 SECTION_PROLOGUE(.debug_macro, 0,) { *(.debug_macro) } 48 SECTION_PROLOGUE(.debug_names, 0,) { *(.debug_names) } 49 SECTION_PROLOGUE(.debug_rnglists, 0,) { *(.debug_rnglists) } 50 SECTION_PROLOGUE(.debug_str_offsets, 0,) { *(.debug_str_offsets) } 51 SECTION_PROLOGUE(.debug_sup, 0,) { *(.debug_sup) } 52