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 | * |
| 9 | * See file CREDITS for list of people who contributed to this |
| 10 | * project. |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of |
| 15 | * the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 25 | * MA 02111-1307 USA |
| 26 | */ |
| 27 | |
| 28 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \ |
Albert ARIBAUD | eac579d | 2013-04-12 05:14:33 +0000 | [diff] [blame] | 29 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 30 | |
| 31 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 32 | OUTPUT_ARCH(arm) |
| 33 | ENTRY(_start) |
| 34 | |
| 35 | SECTIONS |
| 36 | { |
| 37 | .text : |
| 38 | { |
| 39 | __start = .; |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 40 | arch/arm/cpu/armv7/start.o (.text*) |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 41 | *(.text*) |
| 42 | } >.sram |
| 43 | . = ALIGN(4); |
| 44 | |
| 45 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 46 | . = ALIGN(4); |
| 47 | |
| 48 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 49 | . = ALIGN(4); |
| 50 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 51 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 52 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | } >.sram |
| 54 | . = ALIGN(4); |
| 55 | |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 56 | /* Align .machine_param on 256 byte boundary for easier searching */ |
| 57 | .machine_param ALIGN(0x100) : { *(.machine_param) } >.sram |
| 58 | . = ALIGN(4); |
| 59 | |
| 60 | __image_copy_end = .; |
| 61 | _end = .; |
| 62 | |
| 63 | .bss : |
| 64 | { |
| 65 | . = ALIGN(4); |
| 66 | __bss_start = .; |
| 67 | *(.bss*) |
| 68 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 69 | __bss_end = .; |
Rajeshwari Shinde | 78fbcc9 | 2012-07-03 20:02:53 +0000 | [diff] [blame] | 70 | } >.sram |
| 71 | } |