]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/spd8xx/u-boot.lds
ARM: OMAP: remove sr32() from OMAP board code
[people/ms/u-boot.git] / board / spd8xx / u-boot.lds
CommitLineData
4a5b6a35 1/*
cd0402a7 2 * (C) Copyright 2000-2010
4a5b6a35
WD
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
4a5b6a35
WD
6 */
7
8OUTPUT_ARCH(powerpc)
cd0402a7 9
4a5b6a35
WD
10SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
4a5b6a35
WD
14 .text :
15 {
cd0402a7
WD
16 /* WARNING - the following is hand-optimized to fit within */
17 /* the sector layout of our flash chips! XXX FIXME XXX */
18
19 arch/powerpc/cpu/mpc8xx/start.o (.text*)
20 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
e2906a59
MY
21 net/built-in.o (.text*)
22 arch/powerpc/cpu/mpc8xx/built-in.o (.text*)
cd0402a7
WD
23 *(.text.v*printf)
24
25 . = DEFINED(env_offset) ? env_offset : .;
26 common/env_embedded.o (.ppcenv*)
27
28 *(.text*)
4a5b6a35
WD
29 }
30 _etext = .;
31 PROVIDE (etext = .);
32 .rodata :
33 {
f62fb999 34 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
4a5b6a35 35 }
4a5b6a35
WD
36
37 /* Read-write section, merged into data segment: */
38 . = (. + 0x0FF) & 0xFFFFFF00;
39 _erotext = .;
40 PROVIDE (erotext = .);
41 .reloc :
42 {
4a5b6a35 43 _GOT2_TABLE_ = .;
cd0402a7 44 KEEP(*(.got2))
9d8fbd1b
JT
45 KEEP(*(.got))
46 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
4a5b6a35 47 _FIXUP_TABLE_ = .;
cd0402a7 48 KEEP(*(.fixup))
4a5b6a35 49 }
9d8fbd1b 50 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
4a5b6a35
WD
51 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
52
53 .data :
54 {
cd0402a7
WD
55 *(.data*)
56 *(.sdata*)
4a5b6a35
WD
57 }
58 _edata = .;
59 PROVIDE (edata = .);
60
807d5d73 61 . = .;
8bde7f77 62
55675142
MV
63 . = ALIGN(4);
64 .u_boot_list : {
ef123c52 65 KEEP(*(SORT(.u_boot_list*)));
55675142
MV
66 }
67
8bde7f77 68
807d5d73 69 . = .;
4a5b6a35
WD
70 __start___ex_table = .;
71 __ex_table : { *(__ex_table) }
72 __stop___ex_table = .;
73
74 . = ALIGN(256);
75 __init_begin = .;
76 .text.init : { *(.text.init) }
77 .data.init : { *(.data.init) }
78 . = ALIGN(256);
79 __init_end = .;
80
81 __bss_start = .;
64134f01 82 .bss (NOLOAD) :
4a5b6a35 83 {
cd0402a7
WD
84 *(.bss*)
85 *(.sbss*)
4a5b6a35 86 *(COMMON)
9b827cf1 87 . = ALIGN(4);
4a5b6a35 88 }
3929fb0a 89 __bss_end = . ;
4a5b6a35
WD
90 PROVIDE (end = .);
91}