blob: 69500a64e2ac17bcc17c86f4701b1213f0ddacdb [file] [log] [blame]
Michal Simek38716182014-02-05 08:06:29 +01001/*
2 * Copyright (c) 2004-2008 Texas Instruments
3 *
4 * (C) Copyright 2002
5 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
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 {
20 *(.__image_copy_start)
21 CPUDIR/start.o (.text*)
22 *(.text*)
23 }
24
25 . = ALIGN(4);
26 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
27
28 . = ALIGN(4);
29 .data : {
30 *(.data*)
31 }
32
33 . = ALIGN(4);
34
35 . = .;
36
37 . = ALIGN(4);
38 .u_boot_list : {
39 KEEP(*(SORT(.u_boot_list*)));
40 }
41
42 . = ALIGN(4);
43
44 .image_copy_end :
45 {
46 *(.__image_copy_end)
47 }
48
49 .rel_dyn_start :
50 {
51 *(.__rel_dyn_start)
52 }
53
54 .rel.dyn : {
55 *(.rel*)
56 }
57
58 .rel_dyn_end :
59 {
60 *(.__rel_dyn_end)
61 }
62
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010063 .end :
64 {
65 *(.__end)
66 }
67
68 _image_binary_end = .;
Michal Simek38716182014-02-05 08:06:29 +010069
70/*
71 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
72 * __bss_base and __bss_limit are for linker only (overlay ordering)
73 */
74
75 .bss_start __rel_dyn_start (OVERLAY) : {
76 KEEP(*(.__bss_start));
77 __bss_base = .;
78 }
79
80 .bss __bss_base (OVERLAY) : {
81 *(.bss*)
82 . = ALIGN(4);
83 __bss_limit = .;
84 }
85
86 .bss_end __bss_limit (OVERLAY) : {
87 KEEP(*(.__bss_end));
88 }
89
90 /*
Albert ARIBAUD41623c92014-04-15 16:13:51 +020091 * Zynq needs to discard these sections because the user
Michal Simek38716182014-02-05 08:06:29 +010092 * is expected to pass this image on to tools for boot.bin
93 * generation that require them to be dropped.
94 */
95 /DISCARD/ : { *(.dynsym) }
96 /DISCARD/ : { *(.dynbss*) }
97 /DISCARD/ : { *(.dynstr*) }
98 /DISCARD/ : { *(.dynamic*) }
99 /DISCARD/ : { *(.plt*) }
100 /DISCARD/ : { *(.interp*) }
101 /DISCARD/ : { *(.gnu*) }
102 /DISCARD/ : { *(.ARM.exidx*) }
103 /DISCARD/ : { *(.gnu.linkonce.armexidx.*) }
104}