1 /* SPDX-License-Identifier: GPL-2.0+ */
3 MEMORY { .spl_mem : ORIGIN = IMAGE_TEXT_BASE, \
4 LENGTH = IMAGE_MAX_SIZE }
5 MEMORY { .bss_mem : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
6 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
23 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
28 *(SORT_BY_ALIGNMENT(.data*))
29 *(SORT_BY_ALIGNMENT(.sdata*))
32 #if defined(CONFIG_SPL_DM) || defined(CONFIG_SPL_LOADER_SUPPORT)
35 KEEP(*(SORT(__u_boot_list*)));
41 __image_copy_len = __image_copy_end - __text_start;
43 _image_binary_end = .;
54 /* These mark the ABI of U-Boot for debuggers. */
56 KEEP(*(.mdebug.abi32))
59 KEEP(*(.mdebug.abi64))
62 /* This is the MIPS specific mdebug section. */
63 .mdebug : { *(.mdebug) }
65 /* Stabs debugging sections. */
66 .stab 0 : { *(.stab) }
67 .stabstr 0 : { *(.stabstr) }
68 .stab.excl 0 : { *(.stab.excl) }
69 .stab.exclstr 0 : { *(.stab.exclstr) }
70 .stab.index 0 : { *(.stab.index) }
71 .stab.indexstr 0 : { *(.stab.indexstr) }
72 .comment 0 : { *(.comment) }
75 * DWARF debug sections.
76 * Symbols in the DWARF debugging sections are relative to
77 * the beginning of the section so we begin them at 0.
80 .debug 0 : { *(.debug) }
81 .line 0 : { *(.line) }
82 /* GNU DWARF 1 extensions */
83 .debug_srcinfo 0 : { *(.debug_srcinfo) }
84 .debug_sfnames 0 : { *(.debug_sfnames) }
85 /* DWARF 1.1 and DWARF 2 */
86 .debug_aranges 0 : { *(.debug_aranges) }
87 .debug_pubnames 0 : { *(.debug_pubnames) }
93 .debug_abbrev 0 : { *(.debug_abbrev) }
94 .debug_line 0 : { *(.debug_line) }
95 .debug_frame 0 : { *(.debug_frame) }
96 .debug_str 0 : { *(.debug_str) }
97 .debug_loc 0 : { *(.debug_loc) }
98 .debug_macinfo 0 : { *(.debug_macinfo) }
99 .debug_pubtypes 0 : { *(.debug_pubtypes) }
101 .debug_ranges 0 : { *(.debug_ranges) }
102 /* SGI/MIPS DWARF 2 extensions */
103 .debug_weaknames 0 : { *(.debug_weaknames) }
104 .debug_funcnames 0 : { *(.debug_funcnames) }
105 .debug_typenames 0 : { *(.debug_typenames) }
106 .debug_varnames 0 : { *(.debug_varnames) }
107 /* GNU DWARF 2 extensions */
108 .debug_gnu_pubnames 0 : { *(.debug_gnu_pubnames) }
109 .debug_gnu_pubtypes 0 : { *(.debug_gnu_pubtypes) }
111 .debug_types 0 : { *(.debug_types) }
113 .debug_macro 0 : { *(.debug_macro) }
114 .debug_addr 0 : { *(.debug_addr) }
117 /* ABI crap starts here */