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