blob: 33c1f99fc09c9b03ea57006b8483f3f918776004 [file] [log] [blame]
Simon Glass437e2b82012-02-23 03:28:41 +00001/*
2 * Copyright (c) 2004-2008 Texas Instruments
3 *
4 * (C) Copyright 2002
5 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
6 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Simon Glass437e2b82012-02-23 03:28:41 +00008 */
9
10OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
11OUTPUT_ARCH(arm)
12ENTRY(_start)
13SECTIONS
14{
15 . = 0x00000000;
16
17 . = ALIGN(4);
18 .text :
19 {
Albert ARIBAUDc53687e2013-06-11 14:17:33 +020020 *(.__image_copy_start)
Stephen Warrenadddf452012-10-22 06:19:32 +000021 CPUDIR/start.o (.text*)
22 *(.text*)
Simon Glass437e2b82012-02-23 03:28:41 +000023 }
24
25 . = ALIGN(4);
26 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
27
28 . = ALIGN(4);
29 .data : {
Stephen Warrenadddf452012-10-22 06:19:32 +000030 *(.data*)
Simon Glass437e2b82012-02-23 03:28:41 +000031 }
32
33 . = ALIGN(4);
34
35 . = .;
Simon Glass437e2b82012-02-23 03:28:41 +000036
37 . = ALIGN(4);
Marek Vasut607092a2012-10-12 10:27:03 +000038 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000039 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000040 }
41
42 . = ALIGN(4);
Simon Glass437e2b82012-02-23 03:28:41 +000043
Albert ARIBAUDc53687e2013-06-11 14:17:33 +020044 .image_copy_end :
45 {
46 *(.__image_copy_end)
47 }
Simon Glass437e2b82012-02-23 03:28:41 +000048
Albert ARIBAUDaf3ff162013-06-11 14:17:34 +020049 .rel_dyn_start :
50 {
51 *(.__rel_dyn_start)
52 }
53
Simon Glass437e2b82012-02-23 03:28:41 +000054 .rel.dyn : {
Simon Glass437e2b82012-02-23 03:28:41 +000055 *(.rel*)
Albert ARIBAUDaf3ff162013-06-11 14:17:34 +020056 }
57
58 .rel_dyn_end :
59 {
60 *(.__rel_dyn_end)
Simon Glass437e2b82012-02-23 03:28:41 +000061 }
62
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010063 .end :
64 {
65 *(.__end)
66 }
67
68 _image_binary_end = .;
Simon Glass437e2b82012-02-23 03:28:41 +000069
70 /*
71 * Deprecated: this MMU section is used by pxa at present but
72 * should not be used by new boards/CPUs.
73 */
74 . = ALIGN(4096);
75 .mmutable : {
76 *(.mmutable)
77 }
78
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) : {
Stephen Warrenadddf452012-10-22 06:19:32 +000090 *(.bss*)
Simon Glass437e2b82012-02-23 03:28:41 +000091 . = ALIGN(4);
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000092 __bss_limit = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000093 }
Tom Rini19aac972013-03-18 12:31:00 -040094
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000095 .bss_end __bss_limit (OVERLAY) : {
96 KEEP(*(.__bss_end));
Simon Glass437e2b82012-02-23 03:28:41 +000097 }
98
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010099 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +0100100 .dynbss : { *(.dynbss) }
101 .dynstr : { *(.dynstr*) }
102 .dynamic : { *(.dynamic*) }
103 .plt : { *(.plt*) }
104 .interp : { *(.interp*) }
Andreas Färber438a1672014-01-27 05:48:11 +0100105 .gnu.hash : { *(.gnu.hash) }
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +0100106 .gnu : { *(.gnu*) }
107 .ARM.exidx : { *(.ARM.exidx*) }
Albert ARIBAUDddadbed2014-01-13 14:57:05 +0100108 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }
Simon Glass437e2b82012-02-23 03:28:41 +0000109}