]>
Commit | Line | Data |
---|---|---|
c440bfe6 SR |
1 | /* |
2 | * (C) Copyright 2007 | |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
c440bfe6 SR |
6 | */ |
7 | ||
8 | OUTPUT_ARCH(powerpc) | |
c440bfe6 SR |
9 | SECTIONS |
10 | { | |
11 | /* Read-only sections, merged into text segment: */ | |
12 | . = + SIZEOF_HEADERS; | |
c440bfe6 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*) |
c440bfe6 SR |
19 | |
20 | /* Align to next NAND block */ | |
21 | . = ALIGN(0x4000); | |
0cf4fd3c | 22 | common/env_embedded.o (.ppcenv) |
c440bfe6 SR |
23 | /* Keep some space here for redundant env and potential bad env blocks */ |
24 | . = ALIGN(0x10000); | |
25 | ||
37805cf1 | 26 | *(.text*) |
c440bfe6 SR |
27 | } |
28 | _etext = .; | |
29 | PROVIDE (etext = .); | |
30 | .rodata : | |
31 | { | |
f62fb999 | 32 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
c440bfe6 | 33 | } |
c440bfe6 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)) |
c440bfe6 | 42 | _GOT2_TABLE_ = .; |
37805cf1 | 43 | KEEP(*(.got2)) |
c440bfe6 | 44 | _FIXUP_TABLE_ = .; |
37805cf1 | 45 | KEEP(*(.fixup)) |
c440bfe6 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*) | |
c440bfe6 SR |
54 | } |
55 | _edata = .; | |
56 | PROVIDE (edata = .); | |
57 | ||
58 | . = .; | |
c440bfe6 | 59 | |
55675142 | 60 | .u_boot_list : { |
ef123c52 | 61 | KEEP(*(SORT(.u_boot_list*))); |
55675142 | 62 | } |
c440bfe6 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) : |
c440bfe6 | 78 | { |
37805cf1 SR |
79 | *(.bss*) |
80 | *(.sbss*) | |
c440bfe6 | 81 | *(COMMON) |
9b827cf1 | 82 | . = ALIGN(4); |
c440bfe6 SR |
83 | } |
84 | ||
3929fb0a | 85 | __bss_end = . ; |
c440bfe6 SR |
86 | PROVIDE (end = .); |
87 | } |