Scott Wood | 8e728cd | 2015-03-24 13:25:02 -0700 | [diff] [blame] | 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 | |
| 15 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, |
| 16 | LENGTH = CONFIG_SPL_MAX_SIZE } |
| 17 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, |
| 18 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 19 | |
| 20 | OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64") |
| 21 | OUTPUT_ARCH(aarch64) |
| 22 | ENTRY(_start) |
| 23 | SECTIONS |
| 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 | |
Masahiro Yamada | 9bcc571 | 2016-03-08 20:34:44 +0900 | [diff] [blame] | 57 | _image_binary_end = .; |
| 58 | |
Michal Simek | 11bf53b | 2017-05-29 10:26:53 +0200 | [diff] [blame] | 59 | .bss_start (NOLOAD) : { |
Scott Wood | 8e728cd | 2015-03-24 13:25:02 -0700 | [diff] [blame] | 60 | . = ALIGN(8); |
| 61 | KEEP(*(.__bss_start)); |
| 62 | } >.sdram |
| 63 | |
Michal Simek | 11bf53b | 2017-05-29 10:26:53 +0200 | [diff] [blame] | 64 | .bss (NOLOAD) : { |
Scott Wood | 8e728cd | 2015-03-24 13:25:02 -0700 | [diff] [blame] | 65 | *(.bss*) |
| 66 | . = ALIGN(8); |
| 67 | } >.sdram |
| 68 | |
Michal Simek | 11bf53b | 2017-05-29 10:26:53 +0200 | [diff] [blame] | 69 | .bss_end (NOLOAD) : { |
Scott Wood | 8e728cd | 2015-03-24 13:25:02 -0700 | [diff] [blame] | 70 | KEEP(*(.__bss_end)); |
| 71 | } >.sdram |
| 72 | |
| 73 | /DISCARD/ : { *(.dynsym) } |
| 74 | /DISCARD/ : { *(.dynstr*) } |
| 75 | /DISCARD/ : { *(.dynamic*) } |
| 76 | /DISCARD/ : { *(.plt*) } |
| 77 | /DISCARD/ : { *(.interp*) } |
| 78 | /DISCARD/ : { *(.gnu*) } |
| 79 | } |