Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Albert ARIBAUD | 9608e7d | 2015-01-31 22:55:38 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 Albert ARIBAUD <albert.u.boot@aribaud.net> |
| 4 | * |
| 5 | * Based on: |
| 6 | * |
| 7 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
| 8 | * Tom Cubie <tangliang@allwinnertech.com> |
| 9 | * |
| 10 | * Based on omap-common/u-boot-spl.lds: |
| 11 | * |
| 12 | * (C) Copyright 2002 |
| 13 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 14 | * |
| 15 | * (C) Copyright 2010 |
| 16 | * Texas Instruments, <www.ti.com> |
| 17 | * Aneesh V <aneesh@ti.com> |
Albert ARIBAUD | 9608e7d | 2015-01-31 22:55:38 +0100 | [diff] [blame] | 18 | */ |
Tom Rini | 2f41ade | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 19 | MEMORY { .nor : ORIGIN = IMAGE_TEXT_BASE,\ |
| 20 | LENGTH = IMAGE_MAX_SIZE } |
Albert ARIBAUD | 9608e7d | 2015-01-31 22:55:38 +0100 | [diff] [blame] | 21 | MEMORY { .bss : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 22 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 23 | |
| 24 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 25 | OUTPUT_ARCH(arm) |
| 26 | ENTRY(_start) |
| 27 | SECTIONS |
| 28 | { |
| 29 | .text : |
| 30 | { |
| 31 | __start = .; |
| 32 | *(.vectors) |
| 33 | CPUDIR/start.o (.text) |
| 34 | *(.text*) |
| 35 | } > .nor |
| 36 | |
| 37 | . = ALIGN(4); |
| 38 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.nor |
| 39 | |
| 40 | . = ALIGN(4); |
| 41 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.nor |
| 42 | |
| 43 | . = ALIGN(4); |
Andrew Scull | 99e2fbc | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 44 | __u_boot_list : { |
| 45 | KEEP(*(SORT(__u_boot_list*))); |
Albert ARIBAUD | 9608e7d | 2015-01-31 22:55:38 +0100 | [diff] [blame] | 46 | } > .nor |
| 47 | |
| 48 | . = ALIGN(4); |
| 49 | __image_copy_end = .; |
| 50 | _end = .; |
| 51 | |
| 52 | .bss : |
| 53 | { |
| 54 | . = ALIGN(4); |
| 55 | __bss_start = .; |
| 56 | *(.bss*) |
| 57 | . = ALIGN(4); |
| 58 | __bss_end = .; |
| 59 | } > .bss |
| 60 | } |