Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 4 | * |
| 5 | * Copyright (C) 2012 Samsung Electronics |
| 6 | * |
| 7 | * Based on arch/arm/cpu/armv7/omap-common/u-boot-spl.lds |
| 8 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \ |
Albert ARIBAUD | eac579d | 2013-04-12 05:14:33 +0000 | [diff] [blame] | 13 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 14 | |
| 15 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 16 | OUTPUT_ARCH(arm) |
| 17 | ENTRY(_start) |
| 18 | |
| 19 | SECTIONS |
| 20 | { |
| 21 | .text : |
| 22 | { |
| 23 | __start = .; |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 24 | arch/arm/cpu/armv7/start.o (.text*) |
Rajeshwari Shinde | 78fbcc9 | 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 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 35 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 36 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 37 | } >.sram |
| 38 | . = ALIGN(4); |
| 39 | |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 40 | /* Align .machine_param on 256 byte boundary for easier searching */ |
| 41 | .machine_param ALIGN(0x100) : { *(.machine_param) } >.sram |
| 42 | . = ALIGN(4); |
| 43 | |
| 44 | __image_copy_end = .; |
| 45 | _end = .; |
| 46 | |
| 47 | .bss : |
| 48 | { |
| 49 | . = ALIGN(4); |
| 50 | __bss_start = .; |
| 51 | *(.bss*) |
| 52 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 53 | __bss_end = .; |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 54 | } >.sram |
| 55 | } |