blob: 8a4a8a2f078f8a7ddcada9572c58bf00abf22a6d [file] [log] [blame]
Guennadi Liakhovetski3b26c6b2008-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 Zundelf1b3f2b2009-05-13 10:54:10 +02006 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +02007 *
Wolfgang Denkbd8ec7e2013-10-07 13:07:26 +02008 * SPDX-License-Identifier: GPL-2.0+
Guennadi Liakhovetski3b26c6b2008-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 ARIBAUDc53687e2013-06-11 14:17:33 +020021 *(.__image_copy_start)
Guennadi Liakhovetski0c8382b2008-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 ARIBAUD9852cc62014-04-15 16:13:51 +020025 * (.vectors)
Masahiro Yamada30a198b2013-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 Liakhovetski0c8382b2008-04-03 17:04:22 +020031
32 . = DEFINED(env_offset) ? env_offset : .;
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000033 common/env_embedded.o(.text*)
Guennadi Liakhovetski0c8382b2008-04-03 17:04:22 +020034
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000035 *(.text*)
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020036 }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020037 . = ALIGN(4);
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000038 .rodata : { *(.rodata*) }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020039
40 . = ALIGN(4);
Fabio Estevam574cff72011-06-05 06:26:49 +000041 .data : {
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000042 *(.data*)
Fabio Estevam574cff72011-06-05 06:26:49 +000043 }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020044
45 . = ALIGN(4);
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020046
47 . = ALIGN(4);
Marek Vasut607092a2012-10-12 10:27:03 +000048 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000049 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000050 }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020051
52 . = ALIGN(4);
Fabio Estevam574cff72011-06-05 06:26:49 +000053
Albert ARIBAUDc53687e2013-06-11 14:17:33 +020054 .image_copy_end :
55 {
56 *(.__image_copy_end)
57 }
Stefano Babicb913a3a2012-10-10 21:11:41 +000058
Albert ARIBAUDaf3ff162013-06-11 14:17:34 +020059 .rel_dyn_start :
60 {
61 *(.__rel_dyn_start)
62 }
63
Fabio Estevam574cff72011-06-05 06:26:49 +000064 .rel.dyn : {
Fabio Estevam574cff72011-06-05 06:26:49 +000065 *(.rel*)
Albert ARIBAUDaf3ff162013-06-11 14:17:34 +020066 }
67
68 .rel_dyn_end :
69 {
70 *(.__rel_dyn_end)
Fabio Estevam574cff72011-06-05 06:26:49 +000071 }
72
Simon Glass5cb08fa2014-06-02 22:04:46 -060073 .hash : { *(.hash*) }
74
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010075 .end :
76 {
77 *(.__end)
78 }
79
80 _image_binary_end = .;
Fabio Estevam574cff72011-06-05 06:26:49 +000081
Albert ARIBAUDba5662d2013-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 ARIBAUD436f6322013-02-25 00:58:59 +000087 .bss_start __rel_dyn_start (OVERLAY) : {
88 KEEP(*(.__bss_start));
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000089 __bss_base = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000090 }
91
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000092 .bss __bss_base (OVERLAY) : {
Albert ARIBAUD436f6322013-02-25 00:58:59 +000093 *(.bss*)
Fabio Estevam574cff72011-06-05 06:26:49 +000094 . = ALIGN(4);
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000095 __bss_limit = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000096 }
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000097 .bss_end __bss_limit (OVERLAY) : {
98 KEEP(*(.__bss_end));
Fabio Estevam574cff72011-06-05 06:26:49 +000099 }
100
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +0100101 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +0100102 .dynbss : { *(.dynbss) }
103 .dynstr : { *(.dynstr*) }
104 .dynamic : { *(.dynamic*) }
Simon Glass5cb08fa2014-06-02 22:04:46 -0600105 .gnu.hash : { *(.gnu.hash) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +0100106 .plt : { *(.plt*) }
107 .interp : { *(.interp*) }
108 .gnu : { *(.gnu*) }
109 .ARM.exidx : { *(.ARM.exidx*) }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +0200110}