Icenowy Zheng | b198c2e | 2022-01-29 10:23:02 -0500 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2018 |
| 4 | * Icenowy Zheng <icenowy@aosc.io> |
| 5 | * |
| 6 | * Based on arch/arm/cpu/armv7/sunxi/u-boot-spl.lds: |
| 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 | *(.text*) |
| 23 | } > .sram |
| 24 | |
| 25 | . = ALIGN(4); |
| 26 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 27 | |
| 28 | . = ALIGN(4); |
| 29 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 30 | |
| 31 | . = ALIGN(4); |
Andrew Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame^] | 32 | __u_boot_list : { |
| 33 | KEEP(*(SORT(__u_boot_list*))); |
Icenowy Zheng | b198c2e | 2022-01-29 10:23:02 -0500 | [diff] [blame] | 34 | } > .sram |
| 35 | |
| 36 | . = ALIGN(4); |
| 37 | __image_copy_end = .; |
| 38 | _end = .; |
| 39 | |
| 40 | .bss : |
| 41 | { |
| 42 | . = ALIGN(4); |
| 43 | __bss_start = .; |
| 44 | *(.bss*) |
| 45 | . = ALIGN(4); |
| 46 | __bss_end = .; |
| 47 | } > .sdram |
| 48 | } |