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