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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | 411b9ea | 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 | { |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 22 | *(.vectors) |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 23 | arch/arm/cpu/pxa/start.o (.text*) |
Marek Vasut | 67decc7 | 2013-12-26 00:46:49 +0100 | [diff] [blame] | 24 | arch/arm/lib/built-in.o (.text*) |
Masahiro Yamada | e2906a5 | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 25 | board/vpac270/built-in.o (.text*) |
Masahiro Yamada | d6c2ac5 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 26 | drivers/built-in.o (.text*) |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | |
| 30 | /* Start of the rest of the SPL */ |
| 31 | . = CONFIG_SPL_TEXT_BASE + 0x800; |
| 32 | |
| 33 | .text.1 : |
| 34 | { |
| 35 | *(.text*) |
| 36 | } |
| 37 | |
| 38 | . = ALIGN(4); |
| 39 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 40 | |
| 41 | . = ALIGN(4); |
| 42 | .data : { |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 43 | *(.data*) |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 44 | } |
| 45 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 46 | . = ALIGN(4); |
| 47 | |
Benoît Thébaudeau | 7086e91 | 2013-04-11 09:35:46 +0000 | [diff] [blame] | 48 | __image_copy_end = .; |
| 49 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 50 | .rel.dyn : { |
| 51 | __rel_dyn_start = .; |
| 52 | *(.rel*) |
| 53 | __rel_dyn_end = .; |
| 54 | } |
| 55 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 56 | . = ALIGN(0x800); |
| 57 | |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 58 | .end : |
| 59 | { |
| 60 | *(.__end) |
| 61 | } |
| 62 | |
| 63 | _image_binary_end = .; |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 64 | |
| 65 | .bss __rel_dyn_start (OVERLAY) : { |
| 66 | __bss_start = .; |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 67 | *(.bss*) |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 68 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 69 | __bss_end = .; |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 70 | } |
| 71 | |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 72 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 47ed5dd | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 73 | .dynbss : { *(.dynbss) } |
| 74 | .dynstr : { *(.dynstr*) } |
| 75 | .dynamic : { *(.dynamic*) } |
| 76 | .hash : { *(.hash*) } |
| 77 | .plt : { *(.plt*) } |
| 78 | .interp : { *(.interp*) } |
| 79 | .gnu : { *(.gnu*) } |
| 80 | .ARM.exidx : { *(.ARM.exidx*) } |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 81 | } |