Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 5 | * |
| 6 | * (C) Copyright 2010 |
| 7 | * Texas Instruments, <www.ti.com> |
| 8 | * Aneesh V <aneesh@ti.com> |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 9 | */ |
| 10 | |
Tom Rini | 2aaa27d | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 11 | MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\ |
| 12 | LENGTH = IMAGE_MAX_SIZE } |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 13 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 14 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 15 | |
| 16 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 17 | OUTPUT_ARCH(arm) |
| 18 | ENTRY(_start) |
| 19 | SECTIONS |
| 20 | { |
| 21 | .text : |
| 22 | { |
Pavel Machek | 63c37f1 | 2012-08-30 19:20:22 +0200 | [diff] [blame] | 23 | __start = .; |
Benoît Thébaudeau | 3f7740f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 24 | *(.vectors) |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 25 | arch/arm/cpu/armv7/start.o (.text*) |
Pavel Machek | 63c37f1 | 2012-08-30 19:20:22 +0200 | [diff] [blame] | 26 | *(.text*) |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 27 | } >.sram |
| 28 | |
| 29 | . = ALIGN(4); |
| 30 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 31 | |
| 32 | . = ALIGN(4); |
| 33 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 34 | |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 35 | . = ALIGN(4); |
Andrew Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 36 | __u_boot_list : { |
| 37 | KEEP(*(SORT(__u_boot_list*))); |
Heiko Schocher | f53f2b8 | 2013-10-22 11:03:18 +0200 | [diff] [blame] | 38 | } >.sram |
Tom Rini | 14d643b | 2013-11-15 12:20:33 -0500 | [diff] [blame] | 39 | |
Heiko Schocher | f53f2b8 | 2013-10-22 11:03:18 +0200 | [diff] [blame] | 40 | . = ALIGN(4); |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 41 | __image_copy_end = .; |
Ilias Apalodimas | 8080846 | 2024-05-28 09:18:27 +0300 | [diff] [blame] | 42 | _end = .; |
Lokesh Vutla | 74f1f0c | 2017-02-10 20:37:17 +0530 | [diff] [blame] | 43 | _image_binary_end = .; |
| 44 | |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 45 | .bss : |
| 46 | { |
| 47 | . = ALIGN(4); |
| 48 | __bss_start = .; |
| 49 | *(.bss*) |
| 50 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 51 | __bss_end = .; |
Aneesh V | b8e60b9 | 2011-07-21 09:10:21 -0400 | [diff] [blame] | 52 | } >.sdram |
| 53 | } |