blob: 3acc4ca548321ed85f8b24c53130238f9edb5c6c [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
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000025 arch/arm/cpu/arm1136/start.o (.text*)
26 board/freescale/mx31ads/libmx31ads.o (.text*)
27 arch/arm/lib/libarm.o (.text*)
28 net/libnet.o (.text*)
29 drivers/mtd/libmtd.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
Fabio Estevam574cff72011-06-05 06:26:49 +000072 _end = .;
73
Albert ARIBAUDba5662d2013-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 ARIBAUD436f6322013-02-25 00:58:59 +000079 .bss_start __rel_dyn_start (OVERLAY) : {
80 KEEP(*(.__bss_start));
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000081 __bss_base = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000082 }
83
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000084 .bss __bss_base (OVERLAY) : {
Albert ARIBAUD436f6322013-02-25 00:58:59 +000085 *(.bss*)
Fabio Estevam574cff72011-06-05 06:26:49 +000086 . = ALIGN(4);
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000087 __bss_limit = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000088 }
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000089 .bss_end __bss_limit (OVERLAY) : {
90 KEEP(*(.__bss_end));
Fabio Estevam574cff72011-06-05 06:26:49 +000091 }
92
93 /DISCARD/ : { *(.bss*) }
Albert ARIBAUD16915932013-06-11 14:17:31 +020094 /DISCARD/ : { *(.dynsym) }
Fabio Estevam574cff72011-06-05 06:26:49 +000095 /DISCARD/ : { *(.dynstr*) }
96 /DISCARD/ : { *(.dynsym*) }
97 /DISCARD/ : { *(.dynamic*) }
98 /DISCARD/ : { *(.hash*) }
99 /DISCARD/ : { *(.plt*) }
100 /DISCARD/ : { *(.interp*) }
101 /DISCARD/ : { *(.gnu*) }
Guennadi Liakhovetski3b26c6b2008-04-14 10:53:12 +0200102}