blob: 54bafda32443f7ee64da51d4df91b135cac32ddc [file] [log] [blame]
Wolfgang Denkba94a1b2006-05-30 15:56:48 +02001/*
Jean-Christophe PLAGNIOL-VILLARD10a451c2009-05-08 20:24:12 +02002 * (C) Copyright 2000-2006
Wolfgang Denkba94a1b2006-05-30 15:56:48 +02003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24OUTPUT_FORMAT("elf32-bigarm", "elf32-bigarm", "elf32-bigarm")
25OUTPUT_ARCH(arm)
26ENTRY(_start)
27SECTIONS
28{
29 . = 0x00000000;
30
31 . = ALIGN(4);
Jean-Christophe PLAGNIOL-VILLARD10a451c2009-05-08 20:24:12 +020032 .text :
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020033 {
Albert ARIBAUDd026dec2013-06-11 14:17:33 +020034 *(.__image_copy_start)
Michael Schwingen66463e62011-05-23 00:00:03 +020035 arch/arm/cpu/ixp/start.o(.text*)
36 *(.text*)
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020037 }
38
39 . = ALIGN(4);
Trent Piephof62fb992009-02-18 15:22:05 -080040 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020041
42 . = ALIGN(4);
Heiko Schocher2af0a092010-09-17 13:10:47 +020043 .data : {
Michael Schwingen66463e62011-05-23 00:00:03 +020044 *(.data*)
Heiko Schocher2af0a092010-09-17 13:10:47 +020045 }
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020046
47 . = ALIGN(4);
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020048
49 . = .;
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020050
51 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000052 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000053 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000054 }
55
56 . = ALIGN(4);
Albert Aribaud3336ca62010-11-25 22:45:02 +010057
Albert ARIBAUDd026dec2013-06-11 14:17:33 +020058 .image_copy_end :
59 {
60 *(.__image_copy_end)
61 }
Benoît Thébaudeau7086e912013-04-11 09:35:46 +000062
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020063 .rel_dyn_start :
64 {
65 *(.__rel_dyn_start)
66 }
67
Albert Aribaud3336ca62010-11-25 22:45:02 +010068 .rel.dyn : {
Albert Aribaud3336ca62010-11-25 22:45:02 +010069 *(.rel*)
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020070 }
71
72 .rel_dyn_end :
73 {
74 *(.__rel_dyn_end)
Albert Aribaud3336ca62010-11-25 22:45:02 +010075 }
76
Po-Yu Chuangf326cbb2011-03-01 23:02:04 +000077 _end = .;
78
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000079/*
80 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
81 * __bss_base and __bss_limit are for linker only (overlay ordering)
82 */
83
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000084 .bss_start __rel_dyn_start (OVERLAY) : {
85 KEEP(*(.__bss_start));
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000086 __bss_base = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000087 }
88
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000089 .bss __bss_base (OVERLAY) : {
Michael Schwingen66463e62011-05-23 00:00:03 +020090 *(.bss*)
Albert Aribaud3336ca62010-11-25 22:45:02 +010091 . = ALIGN(4);
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000092 __bss_limit = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000093 }
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000094 .bss_end __bss_limit (OVERLAY) : {
95 KEEP(*(.__bss_end));
Albert Aribaud3336ca62010-11-25 22:45:02 +010096 }
97
Albert ARIBAUD09d81182013-06-11 14:17:31 +020098 /DISCARD/ : { *(.dynsym) }
Albert Aribaud3336ca62010-11-25 22:45:02 +010099 /DISCARD/ : { *(.dynstr*) }
100 /DISCARD/ : { *(.dynamic*) }
101 /DISCARD/ : { *(.plt*) }
102 /DISCARD/ : { *(.interp*) }
103 /DISCARD/ : { *(.gnu*) }
Wolfgang Denkba94a1b2006-05-30 15:56:48 +0200104}