Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 5 | * |
| 6 | * Copyright (C) 2012 Samsung Electronics |
| 7 | * |
| 8 | * Based on arch/arm/cpu/armv7/omap-common/u-boot-spl.lds |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
Tom Rini | 2aaa27d | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 11 | MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE, \ |
Albert ARIBAUD | 19a053d | 2013-04-12 05:14:33 +0000 | [diff] [blame] | 12 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 13 | |
| 14 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 15 | OUTPUT_ARCH(arm) |
| 16 | ENTRY(_start) |
| 17 | |
| 18 | SECTIONS |
| 19 | { |
| 20 | .text : |
| 21 | { |
| 22 | __start = .; |
Benoît Thébaudeau | 3f7740f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 23 | *(.vectors) |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 24 | arch/arm/cpu/armv7/start.o (.text*) |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 25 | *(.text*) |
| 26 | } >.sram |
| 27 | . = ALIGN(4); |
| 28 | |
| 29 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 30 | . = ALIGN(4); |
| 31 | |
| 32 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 33 | . = ALIGN(4); |
| 34 | |
Andrew Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 35 | __u_boot_list : { |
| 36 | KEEP(*(SORT(__u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 37 | } >.sram |
| 38 | . = ALIGN(4); |
| 39 | |
Simon Glass | 8c0afb1 | 2017-02-08 05:43:46 -0700 | [diff] [blame] | 40 | .machine_param : { *(.machine_param) } >.sram |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 41 | . = ALIGN(4); |
| 42 | |
| 43 | __image_copy_end = .; |
Ilias Apalodimas | 8080846 | 2024-05-28 09:18:27 +0300 | [diff] [blame] | 44 | _end = .; |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 45 | |
| 46 | .bss : |
| 47 | { |
| 48 | . = ALIGN(4); |
| 49 | __bss_start = .; |
| 50 | *(.bss*) |
| 51 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 52 | __bss_end = .; |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 53 | } >.sram |
| 54 | } |