]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/cogent/u-boot.lds
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / cogent / 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
ba273f06 8#include <config.h>
4a5b6a35 9OUTPUT_ARCH(powerpc)
cd0402a7 10
4a5b6a35
WD
11SECTIONS
12{
13 /* Read-only sections, merged into text segment: */
14 . = + SIZEOF_HEADERS;
4a5b6a35
WD
15 .text :
16 {
ba273f06
WD
17#ifdef CONFIG_MPC8260
18 arch/powerpc/cpu/mpc8260/start.o (.text*)
19#else
cd0402a7
WD
20 arch/powerpc/cpu/mpc8xx/start.o (.text*)
21 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
ba273f06 22#endif
cd0402a7 23 *(.text*)
4a5b6a35
WD
24 }
25 _etext = .;
26 PROVIDE (etext = .);
27 .rodata :
28 {
f62fb999 29 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
4a5b6a35 30 }
4a5b6a35
WD
31
32 /* Read-write section, merged into data segment: */
33 . = (. + 0x0FFF) & 0xFFFFF000;
34 _erotext = .;
35 PROVIDE (erotext = .);
36 .reloc :
37 {
4a5b6a35 38 _GOT2_TABLE_ = .;
cd0402a7 39 KEEP(*(.got2))
9d8fbd1b
JT
40 KEEP(*(.got))
41 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
4a5b6a35 42 _FIXUP_TABLE_ = .;
cd0402a7 43 KEEP(*(.fixup))
4a5b6a35 44 }
9d8fbd1b 45 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
4a5b6a35
WD
46 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
47
48 .data :
49 {
cd0402a7
WD
50 *(.data*)
51 *(.sdata*)
4a5b6a35
WD
52 }
53 _edata = .;
54 PROVIDE (edata = .);
55
807d5d73 56 . = .;
8bde7f77 57
55675142
MV
58 . = ALIGN(4);
59 .u_boot_list : {
ef123c52 60 KEEP(*(SORT(.u_boot_list*)));
55675142
MV
61 }
62
8bde7f77 63
807d5d73 64 . = .;
4a5b6a35
WD
65 __start___ex_table = .;
66 __ex_table : { *(__ex_table) }
67 __stop___ex_table = .;
68
69 . = ALIGN(4096);
70 __init_begin = .;
71 .text.init : { *(.text.init) }
72 .data.init : { *(.data.init) }
73 . = ALIGN(4096);
74 __init_end = .;
75
76 __bss_start = .;
64134f01 77 .bss (NOLOAD) :
4a5b6a35 78 {
cd0402a7
WD
79 *(.bss*)
80 *(.sbss*)
4a5b6a35 81 *(COMMON)
9b827cf1 82 . = ALIGN(4);
4a5b6a35 83 }
3929fb0a 84 __bss_end = . ;
4a5b6a35
WD
85 PROVIDE (end = .);
86}