blob: 8fa9c0f7ed568bfa144496c11fb890357b03b832 [file] [log] [blame]
Bartlomiej Sieka087415c2007-07-11 20:11:07 +02001/*
2 * (C) Copyright 2003-2007
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24OUTPUT_ARCH(powerpc)
25SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
26SECTIONS
27{
28 /* Read-only sections, merged into text segment: */
29 . = + SIZEOF_HEADERS;
30 .interp : { *(.interp) }
31 .hash : { *(.hash) }
32 .dynsym : { *(.dynsym) }
33 .dynstr : { *(.dynstr) }
34 .rel.text : { *(.rel.text) }
35 .rela.text : { *(.rela.text) }
36 .rel.data : { *(.rel.data) }
37 .rela.data : { *(.rela.data) }
38 .rel.rodata : { *(.rel.rodata) }
39 .rela.rodata : { *(.rela.rodata) }
40 .rel.got : { *(.rel.got) }
41 .rela.got : { *(.rela.got) }
42 .rel.ctors : { *(.rel.ctors) }
43 .rela.ctors : { *(.rela.ctors) }
44 .rel.dtors : { *(.rel.dtors) }
45 .rela.dtors : { *(.rela.dtors) }
46 .rel.bss : { *(.rel.bss) }
47 .rela.bss : { *(.rela.bss) }
48 .rel.plt : { *(.rel.plt) }
49 .rela.plt : { *(.rela.plt) }
50 .init : { *(.init) }
51 .plt : { *(.plt) }
52 .text :
53 {
54 cpu/mpc5xxx/start.o (.text)
55 *(.text)
56 *(.fixup)
57 *(.got1)
58 . = ALIGN(16);
59 *(.rodata)
60 *(.rodata1)
61 *(.rodata.str1.4)
62 *(.eh_frame)
63 }
64 .fini : { *(.fini) } =0
65 .ctors : { *(.ctors) }
66 .dtors : { *(.dtors) }
67
68 /* Read-write section, merged into data segment: */
69 . = (. + 0x0FFF) & 0xFFFFF000;
70 _erotext = .;
71 PROVIDE (erotext = .);
72 .reloc :
73 {
74 *(.got)
75 _GOT2_TABLE_ = .;
76 *(.got2)
77 _FIXUP_TABLE_ = .;
78 *(.fixup)
79 }
80 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
81 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
82
83 .data :
84 {
85 *(.data)
86 *(.data1)
87 *(.sdata)
88 *(.sdata2)
89 *(.dynamic)
90 CONSTRUCTORS
91 }
92 _edata = .;
93 PROVIDE (edata = .);
94
95 . = .;
96 __u_boot_cmd_start = .;
97 .u_boot_cmd : { *(.u_boot_cmd) }
98 __u_boot_cmd_end = .;
99
100
101 . = .;
102 __start___ex_table = .;
103 __ex_table : { *(__ex_table) }
104 __stop___ex_table = .;
105
106 . = ALIGN(4096);
107 __init_begin = .;
108 .text.init : { *(.text.init) }
109 .data.init : { *(.data.init) }
110 . = ALIGN(4096);
111 __init_end = .;
112
113 __bss_start = .;
114 .bss :
115 {
116 *(.sbss) *(.scommon)
117 *(.dynbss)
118 *(.bss)
119 *(COMMON)
120 }
121 _end = . ;
122 PROVIDE (end = .);
123}