1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
8 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
14 #ifndef CONFIG_CMDLINE
15 /DISCARD/ : { *(__u_boot_list_2_cmd_*) }
18 . = IMAGE_TEXT_BASE; /* Location of bootcode in flash */
21 __image_copy_start = .;
29 KEEP(*(SORT(__u_boot_list*)));
33 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
38 __priv_data_start = .;
39 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.priv_data*)))
51 __binman_sym_start = .;
52 KEEP(*(SORT(.binman_sym*)));
56 * Force 32-byte alignment so that it lines up with the start of
57 * bss, which may have up to 32-byte alignment. This ensures
58 * that the end of the .bin file matches up with
59 * _image_binary_end or __bss_end - see board_fdt_blob_setup().
60 * The alignment of BSS depends on what is in it, so can range
66 _image_binary_end = .;
68 #if CONFIG_IS_ENABLED(SEPARATE_BSS)
78 __bss_size = __bss_end - __bss_start;
80 /DISCARD/ : { *(.dynstr*) }
81 /DISCARD/ : { *(.dynamic*) }
82 /DISCARD/ : { *(.plt*) }
83 /DISCARD/ : { *(.interp*) }
84 /DISCARD/ : { *(.gnu*) }
85 /DISCARD/ : { *(.note.gnu.property) }
87 #if defined(CONFIG_SPL_X86_16BIT_INIT) || defined(CONFIG_TPL_X86_16BIT_INIT)
89 * The following expressions place the 16-bit Real-Mode code and
90 * Reset Vector at the end of the Flash ROM
92 . = START_16 - RESET_SEG_START;
93 .start16 : AT (START_16) {
97 . = RESET_VEC_LOC - RESET_SEG_START;
98 .resetvec : AT (RESET_VEC_LOC) {