blob: 1cca176c38df6052e54b72ab3e3af9e10399c569 [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
Masahiro Yamadae2906a52013-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 Liakhovetskid23ff682008-04-03 17:04:22 +020030
31 . = DEFINED(env_offset) ? env_offset : .;
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000032 common/env_embedded.o(.text*)
Guennadi Liakhovetskid23ff682008-04-03 17:04:22 +020033
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000034 *(.text*)
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020035 }
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000036 . = ALIGN(4);
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000037 .rodata : { *(.rodata*) }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020038
39 . = ALIGN(4);
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000040 .data : {
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000041 *(.data*)
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000042 }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020043
44 . = ALIGN(4);
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020045
46 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000047 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000048 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000049 }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +020050
51 . = ALIGN(4);
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000052
Albert ARIBAUDd026dec2013-06-11 14:17:33 +020053 .image_copy_end :
54 {
55 *(.__image_copy_end)
56 }
Stefano Babicb736e4b2012-10-10 21:11:41 +000057
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020058 .rel_dyn_start :
59 {
60 *(.__rel_dyn_start)
61 }
62
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000063 .rel.dyn : {
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000064 *(.rel*)
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020065 }
66
67 .rel_dyn_end :
68 {
69 *(.__rel_dyn_end)
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000070 }
71
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000072 _end = .;
73
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000074/*
75 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
76 * __bss_base and __bss_limit are for linker only (overlay ordering)
77 */
78
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000079 .bss_start __rel_dyn_start (OVERLAY) : {
80 KEEP(*(.__bss_start));
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000081 __bss_base = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000082 }
83
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000084 .bss __bss_base (OVERLAY) : {
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000085 *(.bss*)
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000086 . = ALIGN(4);
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000087 __bss_limit = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000088 }
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000089 .bss_end __bss_limit (OVERLAY) : {
90 KEEP(*(.__bss_end));
Fabio Estevam4ac2e2d2011-06-05 06:26:49 +000091 }
92
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +010093 .dynsym _end : { *(.dynsym) }
94 .dynbss : { *(.dynbss) }
95 .dynstr : { *(.dynstr*) }
96 .dynamic : { *(.dynamic*) }
97 .hash : { *(.hash*) }
98 .plt : { *(.plt*) }
99 .interp : { *(.interp*) }
100 .gnu : { *(.gnu*) }
101 .ARM.exidx : { *(.ARM.exidx*) }
Guennadi Liakhovetskib5dc9b32008-04-14 10:53:12 +0200102}