Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 |
| 4 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
| 5 | * Tom Cubie <tangliang@allwinnertech.com> |
| 6 | * |
| 7 | * Based on omap-common/u-boot-spl.lds: |
| 8 | * |
| 9 | * (C) Copyright 2002 |
| 10 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 11 | * |
| 12 | * (C) Copyright 2010 |
| 13 | * Texas Instruments, <www.ti.com> |
| 14 | * Aneesh V <aneesh@ti.com> |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 15 | */ |
Tom Rini | 2aaa27d | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 16 | MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\ |
| 17 | LENGTH = IMAGE_MAX_SIZE } |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 18 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 19 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 20 | |
| 21 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 22 | OUTPUT_ARCH(arm) |
| 23 | ENTRY(_start) |
| 24 | SECTIONS |
| 25 | { |
| 26 | .text : |
| 27 | { |
| 28 | __start = .; |
Hans de Goede | 85089a2 | 2014-06-09 11:36:54 +0200 | [diff] [blame] | 29 | *(.vectors) |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 30 | arch/arm/cpu/armv7/start.o (.text) |
| 31 | *(.text*) |
| 32 | } > .sram |
| 33 | |
| 34 | . = ALIGN(4); |
| 35 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 36 | |
| 37 | . = ALIGN(4); |
| 38 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 39 | |
| 40 | . = ALIGN(4); |
Andrew Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 41 | __u_boot_list : { |
| 42 | KEEP(*(SORT(__u_boot_list*))); |
Hans de Goede | 3352b22 | 2014-06-13 22:55:49 +0200 | [diff] [blame] | 43 | } > .sram |
| 44 | |
| 45 | . = ALIGN(4); |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 46 | __image_copy_end = .; |
| 47 | _end = .; |
Fabio Estevam | d2299ce | 2023-06-30 23:30:51 -0300 | [diff] [blame] | 48 | _image_binary_end = .; |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 49 | |
| 50 | .bss : |
| 51 | { |
| 52 | . = ALIGN(4); |
| 53 | __bss_start = .; |
| 54 | *(.bss*) |
| 55 | . = ALIGN(4); |
| 56 | __bss_end = .; |
| 57 | } > .sdram |
| 58 | } |