Bo Shen | c56e9f4 | 2015-03-27 14:23:34 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 Atmel Corporation |
| 3 | * Bo Shen <voice.shen@atmel.com> |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \ |
| 9 | LENGTH = CONFIG_SPL_MAX_SIZE } |
| 10 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 11 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 12 | |
| 13 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 14 | OUTPUT_ARCH(arm) |
| 15 | ENTRY(_start) |
| 16 | SECTIONS |
| 17 | { |
| 18 | .text : |
| 19 | { |
| 20 | __start = .; |
| 21 | *(.vectors) |
| 22 | arch/arm/cpu/arm926ejs/start.o (.text*) |
| 23 | *(.text*) |
| 24 | } >.sram |
| 25 | |
| 26 | . = ALIGN(4); |
| 27 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 28 | |
| 29 | . = ALIGN(4); |
| 30 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 31 | |
| 32 | . = ALIGN(4); |
Tom Rini | 0ed608e | 2016-03-15 17:56:29 -0400 | [diff] [blame] | 33 | .u_boot_list : { KEEP(*(SORT(.u_boot_list*))) } > .sram |
| 34 | |
| 35 | . = ALIGN(4); |
Bo Shen | c56e9f4 | 2015-03-27 14:23:34 +0800 | [diff] [blame] | 36 | __image_copy_end = .; |
| 37 | |
| 38 | .end : |
| 39 | { |
| 40 | *(.__end) |
| 41 | } >.sram |
| 42 | |
| 43 | .bss : |
| 44 | { |
| 45 | . = ALIGN(4); |
| 46 | __bss_start = .; |
| 47 | *(.bss*) |
| 48 | . = ALIGN(4); |
| 49 | __bss_end = .; |
| 50 | } >.sdram |
| 51 | } |