]>
Commit | Line | Data |
---|---|---|
ba56f625 WD |
1 | /* |
2 | * (C) Copyright 2002-2004 | |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
ba56f625 WD |
6 | */ |
7 | ||
8 | OUTPUT_ARCH(powerpc) | |
ba56f625 WD |
9 | /* Do we need any of these for elf? |
10 | __DYNAMIC = 0; */ | |
11 | SECTIONS | |
12 | { | |
13 | /* Read-only sections, merged into text segment: */ | |
14 | . = + SIZEOF_HEADERS; | |
15 | .interp : { *(.interp) } | |
16 | .hash : { *(.hash) } | |
17 | .dynsym : { *(.dynsym) } | |
18 | .dynstr : { *(.dynstr) } | |
19 | .rel.text : { *(.rel.text) } | |
53677ef1 | 20 | .rela.text : { *(.rela.text) } |
ba56f625 | 21 | .rel.data : { *(.rel.data) } |
53677ef1 WD |
22 | .rela.data : { *(.rela.data) } |
23 | .rel.rodata : { *(.rel.rodata) } | |
24 | .rela.rodata : { *(.rela.rodata) } | |
ba56f625 WD |
25 | .rel.got : { *(.rel.got) } |
26 | .rela.got : { *(.rela.got) } | |
27 | .rel.ctors : { *(.rel.ctors) } | |
28 | .rela.ctors : { *(.rela.ctors) } | |
29 | .rel.dtors : { *(.rel.dtors) } | |
30 | .rela.dtors : { *(.rela.dtors) } | |
31 | .rel.bss : { *(.rel.bss) } | |
32 | .rela.bss : { *(.rela.bss) } | |
33 | .rel.plt : { *(.rel.plt) } | |
34 | .rela.plt : { *(.rela.plt) } | |
35 | .init : { *(.init) } | |
36 | .plt : { *(.plt) } | |
37 | .text : | |
38 | { | |
39 | /* WARNING - the following is hand-optimized to fit within */ | |
40 | /* the sector layout of our flash chips! XXX FIXME XXX */ | |
41 | ||
a47a12be | 42 | arch/powerpc/cpu/ppc4xx/start.o (.text) |
10c1b218 | 43 | board/xes/xpedite1000/init.o (.text) |
a47a12be SR |
44 | arch/powerpc/cpu/ppc4xx/kgdb.o (.text) |
45 | arch/powerpc/cpu/ppc4xx/traps.o (.text) | |
46 | arch/powerpc/cpu/ppc4xx/interrupts.o (.text) | |
47 | arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text) | |
48 | arch/powerpc/cpu/ppc4xx/cpu_init.o (.text) | |
49 | arch/powerpc/cpu/ppc4xx/speed.o (.text) | |
ba56f625 | 50 | common/dlmalloc.o (.text) |
78acc472 | 51 | lib/crc32.o (.text) |
a47a12be | 52 | arch/powerpc/lib/extable.o (.text) |
78acc472 | 53 | lib/zlib.o (.text) |
ba56f625 | 54 | |
0cf4fd3c | 55 | /* common/env_embedded.o(.text) */ |
ba56f625 WD |
56 | |
57 | *(.text) | |
ba56f625 WD |
58 | *(.got1) |
59 | } | |
60 | _etext = .; | |
61 | PROVIDE (etext = .); | |
62 | .rodata : | |
63 | { | |
7481266e | 64 | *(.eh_frame) |
f62fb999 | 65 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
ba56f625 WD |
66 | } |
67 | .fini : { *(.fini) } =0 | |
68 | .ctors : { *(.ctors) } | |
69 | .dtors : { *(.dtors) } | |
70 | ||
71 | /* Read-write section, merged into data segment: */ | |
72 | . = (. + 0x0FFF) & 0xFFFFF000; | |
73 | _erotext = .; | |
74 | PROVIDE (erotext = .); | |
75 | .reloc : | |
76 | { | |
77 | *(.got) | |
78 | _GOT2_TABLE_ = .; | |
79 | *(.got2) | |
80 | _FIXUP_TABLE_ = .; | |
81 | *(.fixup) | |
82 | } | |
83 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | |
84 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | |
85 | ||
86 | .data : | |
87 | { | |
88 | *(.data) | |
89 | *(.data1) | |
90 | *(.sdata) | |
91 | *(.sdata2) | |
92 | *(.dynamic) | |
93 | CONSTRUCTORS | |
94 | } | |
95 | _edata = .; | |
96 | PROVIDE (edata = .); | |
97 | ||
ba56f625 | 98 | |
55675142 MV |
99 | . = ALIGN(4); |
100 | .u_boot_list : { | |
ef123c52 | 101 | KEEP(*(SORT(.u_boot_list*))); |
55675142 MV |
102 | } |
103 | ||
ba56f625 WD |
104 | |
105 | __start___ex_table = .; | |
106 | __ex_table : { *(__ex_table) } | |
107 | __stop___ex_table = .; | |
108 | ||
109 | . = ALIGN(256); | |
110 | __init_begin = .; | |
111 | .text.init : { *(.text.init) } | |
112 | .data.init : { *(.data.init) } | |
113 | . = ALIGN(256); | |
114 | __init_end = .; | |
115 | ||
116 | __bss_start = .; | |
117 | .bss : | |
118 | { | |
119 | *(.sbss) *(.scommon) | |
120 | *(.dynbss) | |
121 | *(.bss) | |
122 | *(COMMON) | |
123 | } | |
5993053f | 124 | __bss_end = . ; |
ba56f625 WD |
125 | PROVIDE (end = .); |
126 | } |