1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright (c) 2004-2008 Texas Instruments 4 * 5 * (C) Copyright 2002 6 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> 7 */ 8 9OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") 10OUTPUT_ARCH(arm) 11ENTRY(_start) 12SECTIONS 13{ 14 . = 0x00000000; 15 16 . = ALIGN(4); 17 .text : 18 { 19 __image_copy_start = .; 20 *(.vectors) 21 CPUDIR/start.o (.text*) 22 *(.text*) 23 *(.glue*) 24 } 25 26 . = ALIGN(4); 27 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } 28 29 . = ALIGN(4); 30 .data : { 31 *(.data*) 32 } 33 34 . = ALIGN(4); 35 .u_boot_list : { 36 KEEP(*(SORT(.u_boot_list*))); 37 } 38 39 . = ALIGN(4); 40 .binman_sym_table : { 41 __binman_sym_start = .; 42 KEEP(*(SORT(.binman_sym*))); 43 __binman_sym_end = .; 44 } 45 46 . = ALIGN(4); 47 48 __image_copy_end = .; 49 50 .rel.dyn : { 51 __rel_dyn_start = .; 52 *(.rel*) 53 __rel_dyn_end = .; 54 } 55 56 .end : 57 { 58 *(.__end) 59 } 60 61 _image_binary_end = .; 62 63 .bss __rel_dyn_start (OVERLAY) : { 64 __bss_start = .; 65 *(.bss*) 66 . = ALIGN(4); 67 __bss_end = .; 68 } 69 __bss_size = __bss_end - __bss_start; 70 .dynsym _image_binary_end : { *(.dynsym) } 71 .dynbss : { *(.dynbss) } 72 .dynstr : { *(.dynstr*) } 73 .dynamic : { *(.dynamic*) } 74 .hash : { *(.hash*) } 75 .plt : { *(.plt*) } 76 .interp : { *(.interp*) } 77 .gnu : { *(.gnu*) } 78 .ARM.exidx : { *(.ARM.exidx*) } 79} 80 81#if defined(CONFIG_SPL_MAX_SIZE) 82ASSERT(__image_copy_end - __image_copy_start < (CONFIG_SPL_MAX_SIZE), \ 83 "SPL image too big"); 84#endif 85 86#if defined(CONFIG_SPL_BSS_MAX_SIZE) 87ASSERT(__bss_end - __bss_start < (CONFIG_SPL_BSS_MAX_SIZE), \ 88 "SPL image BSS too big"); 89#endif 90 91#if defined(CONFIG_SPL_MAX_FOOTPRINT) 92ASSERT(__bss_end - _start < (CONFIG_SPL_MAX_FOOTPRINT), \ 93 "SPL image plus BSS too big"); 94#endif 95