]>
Commit | Line | Data |
---|---|---|
c609719b | 1 | /* |
cd0402a7 | 2 | * (C) Copyright 2000-2010 |
c609719b WD |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
c609719b WD |
6 | */ |
7 | ||
8 | OUTPUT_ARCH(powerpc) | |
cd0402a7 | 9 | |
c609719b WD |
10 | SECTIONS |
11 | { | |
12 | /* Read-only sections, merged into text segment: */ | |
13 | . = + SIZEOF_HEADERS; | |
53677ef1 | 14 | .text : |
c609719b | 15 | { |
cd0402a7 WD |
16 | arch/powerpc/cpu/mpc8xx/start.o (.text*) |
17 | arch/powerpc/cpu/mpc8xx/traps.o (.text*) | |
c609719b | 18 | |
cd0402a7 | 19 | *(.text*) |
c609719b WD |
20 | } |
21 | _etext = .; | |
22 | PROVIDE (etext = .); | |
23 | .rodata : | |
24 | { | |
f62fb999 | 25 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
c609719b | 26 | } |
c609719b WD |
27 | |
28 | /* Read-write section, merged into data segment: */ | |
29 | . = (. + 0x00FF) & 0xFFFFFF00; | |
30 | _erotext = .; | |
31 | PROVIDE (erotext = .); | |
32 | .reloc : | |
33 | { | |
c609719b | 34 | _GOT2_TABLE_ = .; |
cd0402a7 | 35 | KEEP(*(.got2)) |
9d8fbd1b JT |
36 | KEEP(*(.got)) |
37 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | |
c609719b | 38 | _FIXUP_TABLE_ = .; |
cd0402a7 | 39 | KEEP(*(.fixup)) |
c609719b | 40 | } |
9d8fbd1b | 41 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
c609719b WD |
42 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
43 | ||
44 | .data : | |
45 | { | |
cd0402a7 WD |
46 | *(.data*) |
47 | *(.sdata*) | |
c609719b WD |
48 | } |
49 | _edata = .; | |
50 | PROVIDE (edata = .); | |
51 | ||
807d5d73 | 52 | . = .; |
8bde7f77 | 53 | |
55675142 MV |
54 | . = ALIGN(4); |
55 | .u_boot_list : { | |
ef123c52 | 56 | KEEP(*(SORT(.u_boot_list*))); |
55675142 MV |
57 | } |
58 | ||
8bde7f77 | 59 | |
807d5d73 | 60 | . = .; |
c609719b WD |
61 | __start___ex_table = .; |
62 | __ex_table : { *(__ex_table) } | |
63 | __stop___ex_table = .; | |
64 | ||
65 | . = ALIGN(256); | |
66 | __init_begin = .; | |
67 | .text.init : { *(.text.init) } | |
68 | .data.init : { *(.data.init) } | |
69 | . = ALIGN(256); | |
70 | __init_end = .; | |
71 | ||
72 | __bss_start = .; | |
64134f01 | 73 | .bss (NOLOAD) : |
c609719b | 74 | { |
cd0402a7 WD |
75 | *(.bss*) |
76 | *(.sbss*) | |
c609719b | 77 | *(COMMON) |
9b827cf1 | 78 | . = ALIGN(4); |
c609719b | 79 | } |
3929fb0a | 80 | __bss_end = . ; |
c609719b WD |
81 | PROVIDE (end = .); |
82 | } |