]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/amcc/kilauea/u-boot-nand.lds
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / amcc / kilauea / u-boot-nand.lds
CommitLineData
3d6cb3b2
SR
1/*
2 * (C) Copyright 2007
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
3d6cb3b2
SR
6 */
7
8OUTPUT_ARCH(powerpc)
3d6cb3b2
SR
9SECTIONS
10{
11 /* Read-only sections, merged into text segment: */
12 . = + SIZEOF_HEADERS;
3d6cb3b2
SR
13 .text :
14 {
15 /* WARNING - the following is hand-optimized to fit within */
16 /* the sector layout of our flash chips! XXX FIXME XXX */
17
37805cf1 18 arch/powerpc/cpu/ppc4xx/start.o (.text*)
3d6cb3b2
SR
19
20 /* Align to next NAND block */
21 . = ALIGN(0x4000);
0cf4fd3c 22 common/env_embedded.o (.ppcenv)
3d6cb3b2
SR
23 /* Keep some space here for redundant env and potential bad env blocks */
24 . = ALIGN(0x10000);
25
37805cf1 26 *(.text*)
3d6cb3b2
SR
27 }
28 _etext = .;
29 PROVIDE (etext = .);
30 .rodata :
31 {
f62fb999 32 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
3d6cb3b2 33 }
3d6cb3b2
SR
34
35 /* Read-write section, merged into data segment: */
36 . = (. + 0x00FF) & 0xFFFFFF00;
37 _erotext = .;
38 PROVIDE (erotext = .);
39 .reloc :
40 {
37805cf1 41 KEEP(*(.got))
3d6cb3b2 42 _GOT2_TABLE_ = .;
37805cf1 43 KEEP(*(.got2))
3d6cb3b2 44 _FIXUP_TABLE_ = .;
37805cf1 45 KEEP(*(.fixup))
3d6cb3b2
SR
46 }
47 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
48 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
49
50 .data :
51 {
37805cf1
SR
52 *(.data*)
53 *(.sdata*)
3d6cb3b2
SR
54 }
55 _edata = .;
56 PROVIDE (edata = .);
57
58 . = .;
3d6cb3b2 59
55675142 60 .u_boot_list : {
ef123c52 61 KEEP(*(SORT(.u_boot_list*)));
55675142 62 }
3d6cb3b2
SR
63
64 . = .;
65 __start___ex_table = .;
66 __ex_table : { *(__ex_table) }
67 __stop___ex_table = .;
68
69 . = ALIGN(256);
70 __init_begin = .;
71 .text.init : { *(.text.init) }
72 .data.init : { *(.data.init) }
73 . = ALIGN(256);
74 __init_end = .;
75
76 __bss_start = .;
64134f01 77 .bss (NOLOAD) :
3d6cb3b2 78 {
37805cf1
SR
79 *(.bss*)
80 *(.sbss*)
3d6cb3b2 81 *(COMMON)
9b827cf1 82 . = ALIGN(4);
3d6cb3b2
SR
83 }
84
3929fb0a 85 __bss_end = . ;
3d6cb3b2
SR
86 PROVIDE (end = .);
87}