]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/cpu/u-boot.lds
arm: put .hash, .got.plt and .machine_param back in binaries
[people/ms/u-boot.git] / arch / arm / cpu / u-boot.lds
CommitLineData
dde3b70d
SG
1/*
2 * Copyright (c) 2004-2008 Texas Instruments
3 *
4 * (C) Copyright 2002
5 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
6 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
dde3b70d
SG
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 {
d026dec8 20 *(.__image_copy_start)
b68d6712
SW
21 CPUDIR/start.o (.text*)
22 *(.text*)
dde3b70d
SG
23 }
24
25 . = ALIGN(4);
26 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
27
28 . = ALIGN(4);
29 .data : {
b68d6712 30 *(.data*)
dde3b70d
SG
31 }
32
33 . = ALIGN(4);
34
35 . = .;
dde3b70d 36
55675142
MV
37 . = ALIGN(4);
38 .u_boot_list : {
ef123c52 39 KEEP(*(SORT(.u_boot_list*)));
55675142
MV
40 }
41
dde3b70d
SG
42 . = ALIGN(4);
43
d026dec8
AA
44 .image_copy_end :
45 {
46 *(.__image_copy_end)
47 }
dde3b70d 48
47bd65ef
AA
49 .rel_dyn_start :
50 {
51 *(.__rel_dyn_start)
52 }
53
dde3b70d 54 .rel.dyn : {
dde3b70d 55 *(.rel*)
47bd65ef
AA
56 }
57
58 .rel_dyn_end :
59 {
60 *(.__rel_dyn_end)
dde3b70d
SG
61 }
62
dde3b70d
SG
63 _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
f84a7b8f
AA
74/*
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
3ebd1cbc
AA
79 .bss_start __rel_dyn_start (OVERLAY) : {
80 KEEP(*(.__bss_start));
f84a7b8f 81 __bss_base = .;
3ebd1cbc
AA
82 }
83
f84a7b8f 84 .bss __bss_base (OVERLAY) : {
b68d6712 85 *(.bss*)
dde3b70d 86 . = ALIGN(4);
f84a7b8f 87 __bss_limit = .;
3ebd1cbc 88 }
0ce033d2 89
f84a7b8f
AA
90 .bss_end __bss_limit (OVERLAY) : {
91 KEEP(*(.__bss_end));
dde3b70d
SG
92 }
93
47ed5dd0 94 .dynsym _end : { *(.dynsym) }
47ed5dd0
AA
95 .dynbss : { *(.dynbss) }
96 .dynstr : { *(.dynstr*) }
97 .dynamic : { *(.dynamic*) }
98 .plt : { *(.plt*) }
99 .interp : { *(.interp*) }
100 .gnu : { *(.gnu*) }
101 .ARM.exidx : { *(.ARM.exidx*) }
b02bfc4d 102 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }
dde3b70d 103}