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