blob: 03c1d5f73b3dc81445554ec62e2af69fe03e6446 [file] [log] [blame]
Steve Kipiszc5c7a7c2013-07-18 15:13:04 -04001/*
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
26OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
27OUTPUT_ARCH(arm)
28ENTRY(_start)
29SECTIONS
30{
31 . = 0x00000000;
32
33 . = ALIGN(4);
34 .text :
35 {
36 *(.__image_copy_start)
Albert ARIBAUD41623c92014-04-15 16:13:51 +020037 *(.vectors)
Steve Kipiszc5c7a7c2013-07-18 15:13:04 -040038 CPUDIR/start.o (.text*)
Masahiro Yamadae2906a52013-11-11 14:36:00 +090039 board/ti/am335x/built-in.o (.text*)
Alexander Graf7e21fbc2018-06-12 07:48:37 +020040 }
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 Kipiszc5c7a7c2013-07-18 15:13:04 -040059 *(.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 Graf50149ea2016-03-04 01:10:01 +010081 .efi_runtime_rel_start :
82 {
83 *(.__efi_runtime_rel_start)
84 }
85
86 .efi_runtime_rel : {
Alexander Graf7e21fbc2018-06-12 07:48:37 +020087 *(.rel*.efi_runtime)
88 *(.rel*.efi_runtime.*)
Alexander Graf50149ea2016-03-04 01:10:01 +010089 }
90
91 .efi_runtime_rel_stop :
92 {
93 *(.__efi_runtime_rel_stop)
94 }
95
96 . = ALIGN(4);
97
Steve Kipiszc5c7a7c2013-07-18 15:13:04 -040098 .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 Glassad3cd072014-06-02 22:04:44 -0600117 .hash : { *(.hash*) }
118
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +0100119 .end :
120 {
121 *(.__end)
122 }
123
124 _image_binary_end = .;
Steve Kipiszc5c7a7c2013-07-18 15:13:04 -0400125
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 ARIBAUDd0b5d9d2014-02-22 17:53:42 +0100155 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +0100156 .dynbss : { *(.dynbss) }
157 .dynstr : { *(.dynstr*) }
158 .dynamic : { *(.dynamic*) }
Andreas Färber2c67e0e2014-01-27 05:48:11 +0100159 .gnu.hash : { *(.gnu.hash) }
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +0100160 .plt : { *(.plt*) }
161 .interp : { *(.interp*) }
162 .gnu : { *(.gnu*) }
163 .ARM.exidx : { *(.ARM.exidx*) }
Steve Kipiszc5c7a7c2013-07-18 15:13:04 -0400164}