1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * (C) Copyright 2018 4 * Icenowy Zheng <icenowy@aosc.io> 5 * 6 * Based on arch/arm/cpu/armv7/sunxi/u-boot-spl.lds: 7 */ 8MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ 9 LENGTH = CONFIG_SPL_MAX_SIZE } 10MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ 11 LENGTH = CONFIG_SPL_BSS_MAX_SIZE } 12 13OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") 14OUTPUT_ARCH(arm) 15ENTRY(_start) 16SECTIONS 17{ 18 .text : 19 { 20 __start = .; 21 *(.vectors) 22 *(.text*) 23 } > .sram 24 25 . = ALIGN(4); 26 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram 27 28 . = ALIGN(4); 29 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram 30 31 . = ALIGN(4); 32 __u_boot_list : { 33 KEEP(*(SORT(__u_boot_list*))); 34 } > .sram 35 36 . = ALIGN(4); 37 __image_copy_end = .; 38 _end = .; 39 _image_binary_end = .; 40 41 .bss : 42 { 43 . = ALIGN(4); 44 __bss_start = .; 45 *(.bss*) 46 . = ALIGN(4); 47 __bss_end = .; 48 } > .sdram 49} 50