Steve Kipisz | c1399b4 | 2013-07-18 15:13:04 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2004-2008 Texas Instruments |
| 3 | * |
| 4 | * (C) Copyright 2002 |
| 5 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 6 | * |
| 7 | * See file CREDITS for list of people who contributed to this |
| 8 | * project. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU General Public License as |
| 12 | * published by the Free Software Foundation; either version 2 of |
| 13 | * the License, or (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 23 | * MA 02111-1307 USA |
| 24 | */ |
| 25 | |
| 26 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 27 | OUTPUT_ARCH(arm) |
| 28 | ENTRY(_start) |
| 29 | SECTIONS |
| 30 | { |
| 31 | . = 0x00000000; |
| 32 | |
| 33 | . = ALIGN(4); |
| 34 | .text : |
| 35 | { |
| 36 | *(.__image_copy_start) |
Albert ARIBAUD | 9852cc6 | 2014-04-15 16:13:51 +0200 | [diff] [blame] | 37 | *(.vectors) |
Steve Kipisz | c1399b4 | 2013-07-18 15:13:04 -0400 | [diff] [blame] | 38 | CPUDIR/start.o (.text*) |
Masahiro Yamada | 30a198b | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 39 | board/ti/am335x/built-in.o (.text*) |
Alexander Graf | 94a10f2 | 2018-06-12 07:48:37 +0200 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | /* This needs to come before *(.text*) */ |
| 43 | .__efi_runtime_start : { |
| 44 | *(.__efi_runtime_start) |
| 45 | } |
| 46 | |
| 47 | .efi_runtime : { |
| 48 | *(.text.efi_runtime*) |
| 49 | *(.rodata.efi_runtime*) |
| 50 | *(.data.efi_runtime*) |
| 51 | } |
| 52 | |
| 53 | .__efi_runtime_stop : { |
| 54 | *(.__efi_runtime_stop) |
| 55 | } |
| 56 | |
| 57 | .text_rest : |
| 58 | { |
Steve Kipisz | c1399b4 | 2013-07-18 15:13:04 -0400 | [diff] [blame] | 59 | *(.text*) |
| 60 | } |
| 61 | |
| 62 | . = ALIGN(4); |
| 63 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 64 | |
| 65 | . = ALIGN(4); |
| 66 | .data : { |
| 67 | *(.data*) |
| 68 | } |
| 69 | |
| 70 | . = ALIGN(4); |
| 71 | |
| 72 | . = .; |
| 73 | |
| 74 | . = ALIGN(4); |
| 75 | .u_boot_list : { |
| 76 | KEEP(*(SORT(.u_boot_list*))); |
| 77 | } |
| 78 | |
| 79 | . = ALIGN(4); |
| 80 | |
Alexander Graf | 0bd425a | 2016-03-04 01:10:01 +0100 | [diff] [blame] | 81 | .efi_runtime_rel_start : |
| 82 | { |
| 83 | *(.__efi_runtime_rel_start) |
| 84 | } |
| 85 | |
| 86 | .efi_runtime_rel : { |
Alexander Graf | 94a10f2 | 2018-06-12 07:48:37 +0200 | [diff] [blame] | 87 | *(.rel*.efi_runtime) |
| 88 | *(.rel*.efi_runtime.*) |
Alexander Graf | 0bd425a | 2016-03-04 01:10:01 +0100 | [diff] [blame] | 89 | } |
| 90 | |
| 91 | .efi_runtime_rel_stop : |
| 92 | { |
| 93 | *(.__efi_runtime_rel_stop) |
| 94 | } |
| 95 | |
| 96 | . = ALIGN(4); |
| 97 | |
Steve Kipisz | c1399b4 | 2013-07-18 15:13:04 -0400 | [diff] [blame] | 98 | .image_copy_end : |
| 99 | { |
| 100 | *(.__image_copy_end) |
| 101 | } |
| 102 | |
| 103 | .rel_dyn_start : |
| 104 | { |
| 105 | *(.__rel_dyn_start) |
| 106 | } |
| 107 | |
| 108 | .rel.dyn : { |
| 109 | *(.rel*) |
| 110 | } |
| 111 | |
| 112 | .rel_dyn_end : |
| 113 | { |
| 114 | *(.__rel_dyn_end) |
| 115 | } |
| 116 | |
Simon Glass | ff08647 | 2014-06-02 22:04:44 -0600 | [diff] [blame] | 117 | .hash : { *(.hash*) } |
| 118 | |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 119 | .end : |
| 120 | { |
| 121 | *(.__end) |
| 122 | } |
| 123 | |
| 124 | _image_binary_end = .; |
Steve Kipisz | c1399b4 | 2013-07-18 15:13:04 -0400 | [diff] [blame] | 125 | |
| 126 | /* |
| 127 | * Deprecated: this MMU section is used by pxa at present but |
| 128 | * should not be used by new boards/CPUs. |
| 129 | */ |
| 130 | . = ALIGN(4096); |
| 131 | .mmutable : { |
| 132 | *(.mmutable) |
| 133 | } |
| 134 | |
| 135 | /* |
| 136 | * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c |
| 137 | * __bss_base and __bss_limit are for linker only (overlay ordering) |
| 138 | */ |
| 139 | |
| 140 | .bss_start __rel_dyn_start (OVERLAY) : { |
| 141 | KEEP(*(.__bss_start)); |
| 142 | __bss_base = .; |
| 143 | } |
| 144 | |
| 145 | .bss __bss_base (OVERLAY) : { |
| 146 | *(.bss*) |
| 147 | . = ALIGN(4); |
| 148 | __bss_limit = .; |
| 149 | } |
| 150 | |
| 151 | .bss_end __bss_limit (OVERLAY) : { |
| 152 | KEEP(*(.__bss_end)); |
| 153 | } |
| 154 | |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 155 | .dynsym _image_binary_end : { *(.dynsym) } |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 156 | .dynbss : { *(.dynbss) } |
| 157 | .dynstr : { *(.dynstr*) } |
| 158 | .dynamic : { *(.dynamic*) } |
Andreas Färber | 438a167 | 2014-01-27 05:48:11 +0100 | [diff] [blame] | 159 | .gnu.hash : { *(.gnu.hash) } |
Albert ARIBAUD | 95fc6d6 | 2013-11-07 14:21:46 +0100 | [diff] [blame] | 160 | .plt : { *(.plt*) } |
| 161 | .interp : { *(.interp*) } |
| 162 | .gnu : { *(.gnu*) } |
| 163 | .ARM.exidx : { *(.ARM.exidx*) } |
Steve Kipisz | c1399b4 | 2013-07-18 15:13:04 -0400 | [diff] [blame] | 164 | } |