blob: 87c2de22f5a795a2f69527f8b66def875a6405de [file] [log] [blame]
Simon Glassdde3b702012-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 Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Simon Glassdde3b702012-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 ARIBAUDd026dec2013-06-11 14:17:33 +020020 *(.__image_copy_start)
Stephen Warrenb68d6712012-10-22 06:19:32 +000021 CPUDIR/start.o (.text*)
22 *(.text*)
Simon Glassdde3b702012-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 Warrenb68d6712012-10-22 06:19:32 +000030 *(.data*)
Simon Glassdde3b702012-02-23 03:28:41 +000031 }
32
33 . = ALIGN(4);
34
35 . = .;
Simon Glassdde3b702012-02-23 03:28:41 +000036
37 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000038 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000039 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000040 }
41
42 . = ALIGN(4);
Simon Glassdde3b702012-02-23 03:28:41 +000043
Albert ARIBAUDd026dec2013-06-11 14:17:33 +020044 .image_copy_end :
45 {
46 *(.__image_copy_end)
47 }
Simon Glassdde3b702012-02-23 03:28:41 +000048
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020049 .rel_dyn_start :
50 {
51 *(.__rel_dyn_start)
52 }
53
Simon Glassdde3b702012-02-23 03:28:41 +000054 .rel.dyn : {
Simon Glassdde3b702012-02-23 03:28:41 +000055 *(.rel*)
Albert ARIBAUD47bd65e2013-06-11 14:17:34 +020056 }
57
58 .rel_dyn_end :
59 {
60 *(.__rel_dyn_end)
Simon Glassdde3b702012-02-23 03:28:41 +000061 }
62
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010063 .end :
64 {
65 *(.__end)
66 }
67
68 _image_binary_end = .;
Simon Glassdde3b702012-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 ARIBAUDf84a7b82013-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 ARIBAUD3ebd1cb2013-02-25 00:58:59 +000084 .bss_start __rel_dyn_start (OVERLAY) : {
85 KEEP(*(.__bss_start));
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000086 __bss_base = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000087 }
88
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000089 .bss __bss_base (OVERLAY) : {
Stephen Warrenb68d6712012-10-22 06:19:32 +000090 *(.bss*)
Simon Glassdde3b702012-02-23 03:28:41 +000091 . = ALIGN(4);
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000092 __bss_limit = .;
Albert ARIBAUD3ebd1cb2013-02-25 00:58:59 +000093 }
Tom Rini0ce033d2013-03-18 12:31:00 -040094
Albert ARIBAUDf84a7b82013-04-11 05:43:21 +000095 .bss_end __bss_limit (OVERLAY) : {
96 KEEP(*(.__bss_end));
Simon Glassdde3b702012-02-23 03:28:41 +000097 }
98
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010099 .dynsym _image_binary_end : { *(.dynsym) }
Albert ARIBAUD47ed5dd2013-11-07 14:21:46 +0100100 .dynbss : { *(.dynbss) }
101 .dynstr : { *(.dynstr*) }
102 .dynamic : { *(.dynamic*) }
103 .plt : { *(.plt*) }
104 .interp : { *(.interp*) }
105 .gnu : { *(.gnu*) }
106 .ARM.exidx : { *(.ARM.exidx*) }
Albert ARIBAUDb02bfc42014-01-13 14:57:05 +0100107 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }
Simon Glassdde3b702012-02-23 03:28:41 +0000108}