]>
Commit | Line | Data |
---|---|---|
71665ebf SR |
1 | /* |
2 | * (C) Copyright 2008 | |
3 | * Stefan Roese, DENX Software Engineering, sr@denx.de. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
71665ebf SR |
6 | */ |
7 | ||
8 | OUTPUT_ARCH(powerpc) | |
71665ebf SR |
9 | SECTIONS |
10 | { | |
11 | /* Read-only sections, merged into text segment: */ | |
12 | . = + SIZEOF_HEADERS; | |
71665ebf 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 | ||
a47a12be | 18 | arch/powerpc/cpu/ppc4xx/start.o (.text) |
ee8028b7 | 19 | board/amcc/canyonlands/init.o (.text*) |
71665ebf SR |
20 | |
21 | /* Align to next NAND block */ | |
499e7831 | 22 | . = ALIGN(0x20000); |
0cf4fd3c | 23 | common/env_embedded.o (.ppcenv) |
71665ebf | 24 | /* Keep some space here for redundant env and potential bad env blocks */ |
499e7831 | 25 | . = ALIGN(0x80000); |
71665ebf | 26 | |
ee8028b7 | 27 | *(.text*) |
71665ebf SR |
28 | } |
29 | _etext = .; | |
30 | PROVIDE (etext = .); | |
31 | .rodata : | |
32 | { | |
f62fb999 | 33 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
71665ebf | 34 | } |
71665ebf SR |
35 | |
36 | /* Read-write section, merged into data segment: */ | |
37 | . = (. + 0x00FF) & 0xFFFFFF00; | |
38 | _erotext = .; | |
39 | PROVIDE (erotext = .); | |
40 | .reloc : | |
41 | { | |
ee8028b7 | 42 | KEEP(*(.got)) |
71665ebf | 43 | _GOT2_TABLE_ = .; |
ee8028b7 | 44 | KEEP(*(.got2)) |
71665ebf | 45 | _FIXUP_TABLE_ = .; |
ee8028b7 | 46 | KEEP(*(.fixup)) |
71665ebf SR |
47 | } |
48 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | |
49 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | |
50 | ||
51 | .data : | |
52 | { | |
ee8028b7 WD |
53 | *(.data*) |
54 | *(.sdata*) | |
71665ebf SR |
55 | } |
56 | _edata = .; | |
57 | PROVIDE (edata = .); | |
58 | ||
59 | . = .; | |
71665ebf | 60 | |
55675142 | 61 | .u_boot_list : { |
ef123c52 | 62 | KEEP(*(SORT(.u_boot_list*))); |
55675142 | 63 | } |
71665ebf SR |
64 | |
65 | . = .; | |
66 | __start___ex_table = .; | |
67 | __ex_table : { *(__ex_table) } | |
68 | __stop___ex_table = .; | |
69 | ||
70 | . = ALIGN(256); | |
71 | __init_begin = .; | |
72 | .text.init : { *(.text.init) } | |
73 | .data.init : { *(.data.init) } | |
74 | . = ALIGN(256); | |
75 | __init_end = .; | |
76 | ||
77 | __bss_start = .; | |
78 | .bss (NOLOAD) : | |
79 | { | |
ee8028b7 WD |
80 | *(.bss*) |
81 | *(.sbss*) | |
71665ebf | 82 | *(COMMON) |
9b827cf1 | 83 | . = ALIGN(4); |
71665ebf SR |
84 | } |
85 | ||
3929fb0a | 86 | __bss_end = . ; |
71665ebf SR |
87 | PROVIDE (end = .); |
88 | } |