Rajeshwari Shinde | e44ebd0 | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \ |
Albert ARIBAUD | 19a053d | 2013-04-12 05:14:33 +0000 | [diff] [blame] | 13 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Rajeshwari Shinde | e44ebd0 | 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 | 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*) |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 26 | *(.text*) |
| 27 | } >.sram |
| 28 | . = ALIGN(4); |
| 29 | |
| 30 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 31 | . = ALIGN(4); |
| 32 | |
| 33 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 34 | . = ALIGN(4); |
| 35 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 36 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 37 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 38 | } >.sram |
| 39 | . = ALIGN(4); |
| 40 | |
Simon Glass | 8c0afb1 | 2017-02-08 05:43:46 -0700 | [diff] [blame] | 41 | .machine_param : { *(.machine_param) } >.sram |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 42 | . = ALIGN(4); |
| 43 | |
| 44 | __image_copy_end = .; |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 45 | |
| 46 | .end : |
| 47 | { |
| 48 | *(.__end) |
| 49 | } >.sram |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 50 | |
| 51 | .bss : |
| 52 | { |
| 53 | . = ALIGN(4); |
| 54 | __bss_start = .; |
| 55 | *(.bss*) |
| 56 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 57 | __bss_end = .; |
Rajeshwari Shinde | e44ebd0 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 58 | } >.sram |
| 59 | } |