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 = .; |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 44 | |
| 45 | .end : |
| 46 | { |
| 47 | *(.__end) |
| 48 | } >.sram |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 49 | |
| 50 | .bss : |
| 51 | { |
| 52 | . = ALIGN(4); |
| 53 | __bss_start = .; |
| 54 | *(.bss*) |
| 55 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 56 | __bss_end = .; |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 57 | } >.sram |
| 58 | } |