blob: 6da1d4b5f5cef55d0672302018b0ade6809a3323 [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
Masahiro Yamada30a198b2013-11-11 14:36:00 +090025 arch/arm/cpu/arm1136/start.o (.text*)
26 board/freescale/mx31ads/built-in.o (.text*)
27 arch/arm/lib/built-in.o (.text*)
28 net/built-in.o (.text*)
29 drivers/mtd/built-in.o (.text*)
Guennadi Liakhovetski0c8382b2008-04-03 17:04:22 +020030
31 . = DEFINED(env_offset) ? env_offset : .;
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000032 common/env_embedded.o(.text*)
Guennadi Liakhovetski0c8382b2008-04-03 17:04:22 +020033
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000034 *(.text*)
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020035 }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020036 . = ALIGN(4);
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000037 .rodata : { *(.rodata*) }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020038
39 . = ALIGN(4);
Fabio Estevam574cff72011-06-05 06:26:49 +000040 .data : {
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000041 *(.data*)
Fabio Estevam574cff72011-06-05 06:26:49 +000042 }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020043
44 . = ALIGN(4);
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020045
46 . = ALIGN(4);
Marek Vasut607092a2012-10-12 10:27:03 +000047 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000048 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000049 }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +020050
51 . = ALIGN(4);
Fabio Estevam574cff72011-06-05 06:26:49 +000052
Albert ARIBAUDc53687e2013-06-11 14:17:33 +020053 .image_copy_end :
54 {
55 *(.__image_copy_end)
56 }
Stefano Babicb913a3a2012-10-10 21:11:41 +000057
Albert ARIBAUDaf3ff162013-06-11 14:17:34 +020058 .rel_dyn_start :
59 {
60 *(.__rel_dyn_start)
61 }
62
Fabio Estevam574cff72011-06-05 06:26:49 +000063 .rel.dyn : {
Fabio Estevam574cff72011-06-05 06:26:49 +000064 *(.rel*)
Albert ARIBAUDaf3ff162013-06-11 14:17:34 +020065 }
66
67 .rel_dyn_end :
68 {
69 *(.__rel_dyn_end)
Fabio Estevam574cff72011-06-05 06:26:49 +000070 }
71
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010072 .end :
73 {
74 *(.__end)
75 }
76
77 _image_binary_end = .;
Fabio Estevam574cff72011-06-05 06:26:49 +000078
Albert ARIBAUDba5662d2013-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 ARIBAUD436f6322013-02-25 00:58:59 +000084 .bss_start __rel_dyn_start (OVERLAY) : {
85 KEEP(*(.__bss_start));
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000086 __bss_base = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000087 }
88
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000089 .bss __bss_base (OVERLAY) : {
Albert ARIBAUD436f6322013-02-25 00:58:59 +000090 *(.bss*)
Fabio Estevam574cff72011-06-05 06:26:49 +000091 . = ALIGN(4);
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000092 __bss_limit = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000093 }
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000094 .bss_end __bss_limit (OVERLAY) : {
95 KEEP(*(.__bss_end));
Fabio Estevam574cff72011-06-05 06:26:49 +000096 }
97
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010098 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +010099 .dynbss : { *(.dynbss) }
100 .dynstr : { *(.dynstr*) }
101 .dynamic : { *(.dynamic*) }
102 .hash : { *(.hash*) }
103 .plt : { *(.plt*) }
104 .interp : { *(.interp*) }
105 .gnu : { *(.gnu*) }
106 .ARM.exidx : { *(.ARM.exidx*) }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +0200107}