blob: 8a4a8a2f078f8a7ddcada9572c58bf00abf22a6d [file] [log] [blame]
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +02001/*
2 * January 2004 - Changed to support H4 device
3 * Copyright (c) 2004 Texas Instruments
4 *
5 * (C) Copyright 2002
Detlev Zundel792a09e2009-05-13 10:54:10 +02006 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +02007 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +02008 * SPDX-License-Identifier: GPL-2.0+
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +02009 */
10
11OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
12OUTPUT_ARCH(arm)
13ENTRY(_start)
14SECTIONS
15{
16 . = 0x00000000;
17
18 . = ALIGN(4);
19 .text :
20 {
Albert ARIBAUDd026dec2013-06-11 14:17:33 +020021 *(.__image_copy_start)
Guennadi Liakhovetskid23ff682008-04-03 17:04:22 +020022 /* WARNING - the following is hand-optimized to fit within */
23 /* the sector layout of our flash chips! XXX FIXME XXX */
24
Albert ARIBAUD41623c92014-04-15 16:13:51 +020025 * (.vectors)
Masahiro Yamadae2906a52013-11-11 14:36:00 +090026 arch/arm/cpu/arm1136/start.o (.text*)
27 board/freescale/mx31ads/built-in.o (.text*)
28 arch/arm/lib/built-in.o (.text*)
29 net/built-in.o (.text*)
30 drivers/mtd/built-in.o (.text*)
Guennadi Liakhovetskid23ff682008-04-03 17:04:22 +020031
32 . = DEFINED(env_offset) ? env_offset : .;
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000033 common/env_embedded.o(.text*)
Guennadi Liakhovetskid23ff682008-04-03 17:04:22 +020034
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000035 *(.text*)
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020036 }
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000037 . = ALIGN(4);
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000038 .rodata : { *(.rodata*) }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020039
40 . = ALIGN(4);
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000041 .data : {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000042 *(.data*)
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000043 }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020044
45 . = ALIGN(4);
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020046
47 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000048 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000049 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000050 }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020051
52 . = ALIGN(4);
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000053
Albert ARIBAUDd026dec2013-06-11 14:17:33 +020054 .image_copy_end :
55 {
56 *(.__image_copy_end)
57 }
Stefano Babicb736e4b2012-10-10 21:11:41 +000058
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020059 .rel_dyn_start :
60 {
61 *(.__rel_dyn_start)
62 }
63
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000064 .rel.dyn : {
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000065 *(.rel*)
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020066 }
67
68 .rel_dyn_end :
69 {
70 *(.__rel_dyn_end)
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000071 }
72
Simon Glass6469a342014-06-02 22:04:46 -060073 .hash : { *(.hash*) }
74
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010075 .end :
76 {
77 *(.__end)
78 }
79
80 _image_binary_end = .;
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000081
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000082/*
83 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
84 * __bss_base and __bss_limit are for linker only (overlay ordering)
85 */
86
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000087 .bss_start __rel_dyn_start (OVERLAY) : {
88 KEEP(*(.__bss_start));
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000089 __bss_base = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000090 }
91
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000092 .bss __bss_base (OVERLAY) : {
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000093 *(.bss*)
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000094 . = ALIGN(4);
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000095 __bss_limit = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000096 }
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000097 .bss_end __bss_limit (OVERLAY) : {
98 KEEP(*(.__bss_end));
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000099 }
100
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +0100101 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +0100102 .dynbss : { *(.dynbss) }
103 .dynstr : { *(.dynstr*) }
104 .dynamic : { *(.dynamic*) }
Simon Glass6469a342014-06-02 22:04:46 -0600105 .gnu.hash : { *(.gnu.hash) }
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +0100106 .plt : { *(.plt*) }
107 .interp : { *(.interp*) }
108 .gnu : { *(.gnu*) }
109 .ARM.exidx : { *(.ARM.exidx*) }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +0200110}