1/* 2 * (C) Copyright 2013 3 * David Feng <fenghua@phytium.com.cn> 4 * 5 * (C) Copyright 2002 6 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> 7 * 8 * (C) Copyright 2010 9 * Texas Instruments, <www.ti.com> 10 * Aneesh V <aneesh@ti.com> 11 * 12 * SPDX-License-Identifier: GPL-2.0+ 13 */ 14 15MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, 16 LENGTH = CONFIG_SPL_MAX_SIZE } 17MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, 18 LENGTH = CONFIG_SPL_BSS_MAX_SIZE } 19 20OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64") 21OUTPUT_ARCH(aarch64) 22ENTRY(_start) 23SECTIONS 24{ 25 .text : { 26 . = ALIGN(8); 27 *(.__image_copy_start) 28 CPUDIR/start.o (.text*) 29 *(.text*) 30 } >.sram 31 32 .rodata : { 33 . = ALIGN(8); 34 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) 35 } >.sram 36 37 .data : { 38 . = ALIGN(8); 39 *(.data*) 40 } >.sram 41 42 .u_boot_list : { 43 . = ALIGN(8); 44 KEEP(*(SORT(.u_boot_list*))); 45 } >.sram 46 47 .image_copy_end : { 48 . = ALIGN(8); 49 *(.__image_copy_end) 50 } >.sram 51 52 .end : { 53 . = ALIGN(8); 54 *(.__end) 55 } >.sram 56 57#ifndef CONFIG_SPL_SKIP_RELOCATE 58 . = ALIGN(8); 59 60 .rel_dyn_start : 61 { 62 *(.__rel_dyn_start) 63 } >.sram 64 65 .rela.dyn : { 66 *(.rela*) 67 } >.sram 68 69 .rel_dyn_end : 70 { 71 *(.__rel_dyn_end) 72 } >.sram 73#endif 74 _image_binary_end = .; 75 76 .bss_start (NOLOAD) : { 77 . = ALIGN(8); 78 KEEP(*(.__bss_start)); 79 } >.sdram 80 81 .bss (NOLOAD) : { 82 *(.bss*) 83 . = ALIGN(8); 84 } >.sdram 85 86 .bss_end (NOLOAD) : { 87 KEEP(*(.__bss_end)); 88 } >.sdram 89 90 /DISCARD/ : { *(.dynsym) } 91 /DISCARD/ : { *(.dynstr*) } 92 /DISCARD/ : { *(.dynamic*) } 93 /DISCARD/ : { *(.plt*) } 94 /DISCARD/ : { *(.interp*) } 95 /DISCARD/ : { *(.gnu*) } 96} 97