Marek Vasut | d7a3545 | 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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 15 | OUTPUT_ARCH(arm) |
| 16 | ENTRY(_start) |
| 17 | SECTIONS |
| 18 | { |
| 19 | . = CONFIG_SPL_TEXT_BASE; |
| 20 | .text.0 : |
| 21 | { |
| 22 | arch/arm/cpu/pxa/start.o (.text*) |
Marek Vasut | d4da46f | 2013-12-26 00:46:49 +0100 | [diff] [blame] | 23 | arch/arm/lib/built-in.o (.text*) |
Masahiro Yamada | 30a198b | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 24 | board/vpac270/built-in.o (.text*) |
| 25 | drivers/mtd/onenand/built-in.o (.text*) |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | |
| 29 | /* Start of the rest of the SPL */ |
| 30 | . = CONFIG_SPL_TEXT_BASE + 0x800; |
| 31 | |
| 32 | .text.1 : |
| 33 | { |
| 34 | *(.text*) |
| 35 | } |
| 36 | |
| 37 | . = ALIGN(4); |
| 38 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 39 | |
| 40 | . = ALIGN(4); |
| 41 | .data : { |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 42 | *(.data*) |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 43 | } |
| 44 | |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 45 | . = ALIGN(4); |
| 46 | |
Benoît Thébaudeau | 03bae03 | 2013-04-11 09:35:46 +0000 | [diff] [blame] | 47 | __image_copy_end = .; |
| 48 | |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 49 | .rel.dyn : { |
| 50 | __rel_dyn_start = .; |
| 51 | *(.rel*) |
| 52 | __rel_dyn_end = .; |
| 53 | } |
| 54 | |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 55 | . = ALIGN(0x800); |
| 56 | |
| 57 | _end = .; |
| 58 | |
| 59 | .bss __rel_dyn_start (OVERLAY) : { |
| 60 | __bss_start = .; |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 61 | *(.bss*) |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 62 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 63 | __bss_end = .; |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 64 | } |
| 65 | |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 66 | .dynsym _end : { *(.dynsym) } |
| 67 | .dynbss : { *(.dynbss) } |
| 68 | .dynstr : { *(.dynstr*) } |
| 69 | .dynamic : { *(.dynamic*) } |
| 70 | .hash : { *(.hash*) } |
| 71 | .plt : { *(.plt*) } |
| 72 | .interp : { *(.interp*) } |
| 73 | .gnu : { *(.gnu*) } |
| 74 | .ARM.exidx : { *(.ARM.exidx*) } |
Marek Vasut | d7a3545 | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 75 | } |