1# SPDX-License-Identifier: Apache-2.0 2# The contents of this file is based on include/zephyr/linker/debug-sections.ld 3# Please keep in sync 4 5# Following sections are obtained via 'ld --verbose' 6 7# Stabs debugging sections. 8zephyr_linker_section(NAME .stab ADDRESS 0) 9zephyr_linker_section(NAME .stabstr ADDRESS 0) 10zephyr_linker_section(NAME .stab.excl ADDRESS 0) 11zephyr_linker_section(NAME .stab.exclstr ADDRESS 0) 12zephyr_linker_section(NAME .stab.index ADDRESS 0) 13zephyr_linker_section(NAME .stab.indexstr ADDRESS 0) 14zephyr_linker_section(NAME .gnu.build.attributes ADDRESS 0) 15zephyr_linker_section(NAME .comment ADDRESS 0) 16 17# DWARF debug sections. 18# Symbols in the DWARF debugging sections are relative to the beginning 19# of the section so we begin them at 0. 20# DWARF 1 */ 21zephyr_linker_section(NAME .debug ADDRESS 0) 22zephyr_linker_section(NAME .line ADDRESS 0) 23 24# GNU DWARF 1 extensions 25zephyr_linker_section(NAME .debug_srcinfo ADDRESS 0) 26zephyr_linker_section(NAME .debug_sfnames ADDRESS 0) 27 28# DWARF 1.1 and DWARF 2 29zephyr_linker_section(NAME .debug_aranges ADDRESS 0) 30zephyr_linker_section(NAME .debug_pubnames ADDRESS 0) 31 32# DWARF 2 33zephyr_linker_section(NAME .debug_info ADDRESS 0) 34zephyr_linker_section_configure(SECTION .debug_info INPUT ".gnu.linkonce.wi.*") 35zephyr_linker_section(NAME .debug_abbrev ADDRESS 0) 36zephyr_linker_section(NAME .debug_line ADDRESS 0) 37zephyr_linker_section_configure(SECTION .debug_line INPUT ".debug_line_end") 38zephyr_linker_section(NAME .debug_frame ADDRESS 0) 39zephyr_linker_section(NAME .debug_str ADDRESS 0) 40zephyr_linker_section(NAME .debug_loc ADDRESS 0) 41zephyr_linker_section(NAME .debug_macinfo ADDRESS 0) 42 43# SGI/MIPS DWARF 2 extensions 44zephyr_linker_section(NAME .debug_weaknames ADDRESS 0) 45zephyr_linker_section(NAME .debug_funcnames ADDRESS 0) 46zephyr_linker_section(NAME .debug_typenames ADDRESS 0) 47zephyr_linker_section(NAME .debug_varnames ADDRESS 0) 48 49# DWARF 3 50zephyr_linker_section(NAME .debug_pubtypes ADDRESS 0) 51zephyr_linker_section(NAME .debug_ranges ADDRESS 0) 52 53# DWARF 5 54zephyr_linker_section(NAME .debug_addr ADDRESS 0) 55zephyr_linker_section(NAME .debug_line_str ADDRESS 0) 56zephyr_linker_section(NAME .debug_loclists ADDRESS 0) 57zephyr_linker_section(NAME .debug_macro ADDRESS 0) 58zephyr_linker_section(NAME .debug_names ADDRESS 0) 59zephyr_linker_section(NAME .debug_rnglists ADDRESS 0) 60zephyr_linker_section(NAME .debug_str_offsets ADDRESS 0) 61zephyr_linker_section(NAME .debug_sup ADDRESS 0) 62