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