Bo Shen | c5e8885 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 4 | * |
| 5 | * (C) Copyright 2010 |
| 6 | * Texas Instruments, <www.ti.com> |
| 7 | * Aneesh V <aneesh@ti.com> |
| 8 | * |
| 9 | * (C) 2013 Atmel Corporation |
| 10 | * Bo Shen <voice.shen@atmel.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("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 21 | OUTPUT_ARCH(arm) |
| 22 | ENTRY(_start) |
| 23 | SECTIONS |
| 24 | { |
| 25 | .text : |
| 26 | { |
| 27 | __start = .; |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 28 | *(.vectors) |
Bo Shen | c5e8885 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 29 | arch/arm/cpu/armv7/start.o (.text*) |
| 30 | *(.text*) |
| 31 | } >.sram |
| 32 | |
| 33 | . = ALIGN(4); |
| 34 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 35 | |
| 36 | . = ALIGN(4); |
| 37 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 38 | |
| 39 | . = ALIGN(4); |
Tom Rini | f8a4826 | 2016-03-15 17:56:29 -0400 | [diff] [blame] | 40 | .u_boot_list : { KEEP(*(SORT(.u_boot_list*))) } > .sram |
| 41 | |
| 42 | . = ALIGN(4); |
Bo Shen | c5e8885 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 43 | __image_copy_end = .; |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 44 | |
| 45 | .end : |
| 46 | { |
| 47 | *(.__end) |
| 48 | } >.sram |
Bo Shen | c5e8885 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 49 | |
Wenyou Yang | 7abd5aa | 2017-03-24 11:34:06 +0800 | [diff] [blame] | 50 | _image_binary_end = .; |
| 51 | |
Bo Shen | c5e8885 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 52 | .bss : |
| 53 | { |
| 54 | . = ALIGN(4); |
| 55 | __bss_start = .; |
| 56 | *(.bss*) |
| 57 | . = ALIGN(4); |
| 58 | __bss_end = .; |
| 59 | } >.sdram |
| 60 | } |