]>
Commit | Line | Data |
---|---|---|
efee1709 WD |
1 | /* |
2 | * (C) Copyright 2000 | |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
efee1709 WD |
6 | */ |
7 | ||
8 | OUTPUT_ARCH(powerpc) | |
efee1709 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) } |
efee1709 | 21 | .rel.data : { *(.rel.data) } |
53677ef1 WD |
22 | .rela.data : { *(.rela.data) } |
23 | .rel.rodata : { *(.rel.rodata) } | |
24 | .rela.rodata : { *(.rela.rodata) } | |
efee1709 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/mpc8xx/start.o (.text) |
efee1709 | 43 | common/dlmalloc.o (.text) |
78acc472 PT |
44 | lib/vsprintf.o (.text) |
45 | lib/crc32.o (.text) | |
a47a12be | 46 | arch/powerpc/lib/extable.o (.text) |
efee1709 WD |
47 | |
48 | . = env_offset; | |
0cf4fd3c | 49 | common/env_embedded.o(.text) |
efee1709 WD |
50 | |
51 | *(.text) | |
efee1709 WD |
52 | *(.got1) |
53 | } | |
54 | _etext = .; | |
55 | PROVIDE (etext = .); | |
56 | .rodata : | |
57 | { | |
58 | *(.rodata) | |
59 | *(.rodata1) | |
7481266e WD |
60 | *(.rodata.str1.4) |
61 | *(.eh_frame) | |
efee1709 WD |
62 | } |
63 | .fini : { *(.fini) } =0 | |
64 | .ctors : { *(.ctors) } | |
65 | .dtors : { *(.dtors) } | |
66 | ||
67 | /* Read-write section, merged into data segment: */ | |
68 | . = (. + 0x0FFF) & 0xFFFFF000; | |
69 | _erotext = .; | |
70 | PROVIDE (erotext = .); | |
71 | .reloc : | |
72 | { | |
73 | *(.got) | |
74 | _GOT2_TABLE_ = .; | |
75 | *(.got2) | |
76 | _FIXUP_TABLE_ = .; | |
77 | *(.fixup) | |
78 | } | |
79 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | |
80 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | |
81 | ||
82 | .data : | |
83 | { | |
84 | *(.data) | |
85 | *(.data1) | |
86 | *(.sdata) | |
87 | *(.sdata2) | |
88 | *(.dynamic) | |
89 | CONSTRUCTORS | |
90 | } | |
91 | _edata = .; | |
92 | PROVIDE (edata = .); | |
93 | ||
8bde7f77 | 94 | |
55675142 MV |
95 | . = ALIGN(4); |
96 | .u_boot_list : { | |
ef123c52 | 97 | KEEP(*(SORT(.u_boot_list*))); |
55675142 MV |
98 | } |
99 | ||
8bde7f77 | 100 | |
efee1709 WD |
101 | __start___ex_table = .; |
102 | __ex_table : { *(__ex_table) } | |
103 | __stop___ex_table = .; | |
104 | ||
105 | . = ALIGN(4096); | |
106 | __init_begin = .; | |
107 | .text.init : { *(.text.init) } | |
108 | .data.init : { *(.data.init) } | |
109 | . = ALIGN(4096); | |
110 | __init_end = .; | |
111 | ||
112 | __bss_start = .; | |
113 | .bss : | |
114 | { | |
115 | *(.sbss) *(.scommon) | |
116 | *(.dynbss) | |
117 | *(.bss) | |
118 | *(COMMON) | |
119 | } | |
5993053f | 120 | __bss_end = . ; |
efee1709 WD |
121 | PROVIDE (end = .); |
122 | } |