blob: 9463a33dcb3dab4b99f558b5774a25787df9486f [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
Simon Glass437e2b82012-02-23 03:28:41 +000063 _end = .;
64
65 /*
66 * Deprecated: this MMU section is used by pxa at present but
67 * should not be used by new boards/CPUs.
68 */
69 . = ALIGN(4096);
70 .mmutable : {
71 *(.mmutable)
72 }
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) : {
Stephen Warrenadddf452012-10-22 06:19:32 +000085 *(.bss*)
Simon Glass437e2b82012-02-23 03:28:41 +000086 . = ALIGN(4);
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000087 __bss_limit = .;
Albert ARIBAUD436f6322013-02-25 00:58:59 +000088 }
Tom Rini19aac972013-03-18 12:31:00 -040089
Albert ARIBAUDba5662d2013-04-11 05:43:21 +000090 .bss_end __bss_limit (OVERLAY) : {
91 KEEP(*(.__bss_end));
Simon Glass437e2b82012-02-23 03:28:41 +000092 }
93
Albert ARIBAUD95fc6d62013-11-07 14:21:46 +010094 .dynsym _end : { *(.dynsym) }
95 .hash : { *(.hash) }
96 .got.plt : { *(.got.plt) }
97 .dynbss : { *(.dynbss) }
98 .dynstr : { *(.dynstr*) }
99 .dynamic : { *(.dynamic*) }
100 .plt : { *(.plt*) }
101 .interp : { *(.interp*) }
102 .gnu : { *(.gnu*) }
103 .ARM.exidx : { *(.ARM.exidx*) }
Simon Glass437e2b82012-02-23 03:28:41 +0000104}