]>
Commit | Line | Data |
---|---|---|
8fcbdbcc | 1 | /* |
cd0402a7 | 2 | * (C) Copyright 2000-2010 |
8fcbdbcc WD |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
8fcbdbcc WD |
6 | */ |
7 | ||
8 | OUTPUT_ARCH(powerpc) | |
cd0402a7 | 9 | |
8fcbdbcc WD |
10 | SECTIONS |
11 | { | |
12 | /* Read-only sections, merged into text segment: */ | |
13 | . = + SIZEOF_HEADERS; | |
8fcbdbcc WD |
14 | .text : |
15 | { | |
16 | /* WARNING - the following is hand-optimized to fit within */ | |
17 | /* the sector layout of our flash chips! XXX FIXME XXX */ | |
cd0402a7 WD |
18 | arch/powerpc/cpu/mpc8xx/start.o (.text*) |
19 | arch/powerpc/cpu/mpc8xx/traps.o (.text*) | |
8fcbdbcc WD |
20 | |
21 | . = env_offset; | |
0cf4fd3c | 22 | common/env_embedded.o (.ppcenv) |
8fcbdbcc | 23 | |
cd0402a7 | 24 | *(.text*) |
8fcbdbcc WD |
25 | } |
26 | _etext = .; | |
27 | PROVIDE (etext = .); | |
28 | .rodata : | |
29 | { | |
f62fb999 | 30 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
8fcbdbcc | 31 | } |
8fcbdbcc WD |
32 | |
33 | /* Read-write section, merged into data segment: */ | |
34 | . = (. + 0x00FF) & 0xFFFFFF00; | |
35 | _erotext = .; | |
36 | PROVIDE (erotext = .); | |
37 | .reloc : | |
38 | { | |
8fcbdbcc | 39 | _GOT2_TABLE_ = .; |
cd0402a7 | 40 | KEEP(*(.got2)) |
9d8fbd1b JT |
41 | KEEP(*(.got)) |
42 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | |
8fcbdbcc | 43 | _FIXUP_TABLE_ = .; |
cd0402a7 | 44 | KEEP(*(.fixup)) |
8fcbdbcc | 45 | } |
9d8fbd1b | 46 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
8fcbdbcc WD |
47 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
48 | ||
49 | .data : | |
50 | { | |
cd0402a7 WD |
51 | *(.data*) |
52 | *(.sdata*) | |
8fcbdbcc WD |
53 | } |
54 | _edata = .; | |
55 | PROVIDE (edata = .); | |
56 | ||
807d5d73 | 57 | . = .; |
8bde7f77 | 58 | |
55675142 MV |
59 | . = ALIGN(4); |
60 | .u_boot_list : { | |
ef123c52 | 61 | KEEP(*(SORT(.u_boot_list*))); |
55675142 MV |
62 | } |
63 | ||
8bde7f77 | 64 | |
807d5d73 | 65 | . = .; |
8fcbdbcc WD |
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 = .; | |
64134f01 | 78 | .bss (NOLOAD) : |
8fcbdbcc | 79 | { |
cd0402a7 WD |
80 | *(.bss*) |
81 | *(.sbss*) | |
8fcbdbcc | 82 | *(COMMON) |
9b827cf1 | 83 | . = ALIGN(4); |
8fcbdbcc | 84 | } |
3929fb0a | 85 | __bss_end = . ; |
8fcbdbcc WD |
86 | PROVIDE (end = .); |
87 | } |