Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com> |
| 3 | * on behalf of DENX Software Engineering GmbH |
| 4 | * |
| 5 | * January 2004 - Changed to support H4 device |
| 6 | * Copyright (c) 2004-2008 Texas Instruments |
| 7 | * |
| 8 | * (C) Copyright 2002 |
| 9 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 10 | * |
| 11 | * See file CREDITS for list of people who contributed to this |
| 12 | * project. |
| 13 | * |
| 14 | * This program is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU General Public License as |
| 16 | * published by the Free Software Foundation; either version 2 of |
| 17 | * the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This program is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License |
| 25 | * along with this program; if not, write to the Free Software |
| 26 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 27 | * MA 02111-1307 USA |
| 28 | */ |
| 29 | |
| 30 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 31 | OUTPUT_ARCH(arm) |
| 32 | ENTRY(_start) |
| 33 | SECTIONS |
| 34 | { |
| 35 | . = CONFIG_SPL_TEXT_BASE; |
| 36 | .text.0 : |
| 37 | { |
| 38 | arch/arm/cpu/pxa/start.o (.text*) |
| 39 | board/vpac270/libvpac270.o (.text*) |
| 40 | drivers/mtd/onenand/libonenand.o (.text*) |
| 41 | } |
| 42 | |
| 43 | |
| 44 | /* Start of the rest of the SPL */ |
| 45 | . = CONFIG_SPL_TEXT_BASE + 0x800; |
| 46 | |
| 47 | .text.1 : |
| 48 | { |
| 49 | *(.text*) |
| 50 | } |
| 51 | |
| 52 | . = ALIGN(4); |
| 53 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 54 | |
| 55 | . = ALIGN(4); |
| 56 | .data : { |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 57 | *(.data*) |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 58 | } |
| 59 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 60 | . = ALIGN(4); |
| 61 | |
Benoît Thébaudeau | 7086e91 | 2013-04-11 09:35:46 +0000 | [diff] [blame] | 62 | __image_copy_end = .; |
| 63 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 64 | .rel.dyn : { |
| 65 | __rel_dyn_start = .; |
| 66 | *(.rel*) |
| 67 | __rel_dyn_end = .; |
| 68 | } |
| 69 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 70 | . = ALIGN(0x800); |
| 71 | |
| 72 | _end = .; |
| 73 | |
| 74 | .bss __rel_dyn_start (OVERLAY) : { |
| 75 | __bss_start = .; |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 76 | *(.bss*) |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 77 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 78 | __bss_end = .; |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | /DISCARD/ : { *(.bss*) } |
Albert ARIBAUD | 09d8118 | 2013-06-11 14:17:31 +0200 | [diff] [blame] | 82 | /DISCARD/ : { *(.dynsym) } |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 83 | /DISCARD/ : { *(.dynstr*) } |
| 84 | /DISCARD/ : { *(.dynsym*) } |
| 85 | /DISCARD/ : { *(.dynamic*) } |
| 86 | /DISCARD/ : { *(.hash*) } |
| 87 | /DISCARD/ : { *(.plt*) } |
| 88 | /DISCARD/ : { *(.interp*) } |
| 89 | /DISCARD/ : { *(.gnu*) } |
| 90 | } |