blob: 71099f6f1348f38d3277dc97ec6f3e7d9035b483 [file] [log] [blame]
Andy Fleming67431052007-04-23 02:54:25 -05001/*
2 * Copyright 2004-2007 Freescale Semiconductor.
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23OUTPUT_ARCH(powerpc)
24SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
25/* Do we need any of these for elf?
26 __DYNAMIC = 0; */
27
28SECTIONS
29{
30 /* ELIOR - From RAM: From FLASH: 0xFFFFFFFC*/
31 .resetvec 0xFFFFFFFC:
32 {
33 *(.resetvec)
34 } = 0xffff
35
36 /*(ELIOR - From RAM: From FLASH: 0xFFFFF000*/
37 .bootpg 0xFFFFF000:
38 {
39 cpu/mpc85xx/start.o (.bootpg)
40 board/mpc8568mds/init.o (.bootpg)
41 } = 0xffff
42
43 /* Read-only sections, merged into text segment: */
44 . = + SIZEOF_HEADERS;
45 .interp : { *(.interp) }
46 .hash : { *(.hash) }
47 .dynsym : { *(.dynsym) }
48 .dynstr : { *(.dynstr) }
49 .rel.text : { *(.rel.text) }
50 .rela.text : { *(.rela.text) }
51 .rel.data : { *(.rel.data) }
52 .rela.data : { *(.rela.data) }
53 .rel.rodata : { *(.rel.rodata) }
54 .rela.rodata : { *(.rela.rodata) }
55 .rel.got : { *(.rel.got) }
56 .rela.got : { *(.rela.got) }
57 .rel.ctors : { *(.rel.ctors) }
58 .rela.ctors : { *(.rela.ctors) }
59 .rel.dtors : { *(.rel.dtors) }
60 .rela.dtors : { *(.rela.dtors) }
61 .rel.bss : { *(.rel.bss) }
62 .rela.bss : { *(.rela.bss) }
63 .rel.plt : { *(.rel.plt) }
64 .rela.plt : { *(.rela.plt) }
65 .init : { *(.init) }
66 .plt : { *(.plt) }
67 .text :
68 {
69 cpu/mpc85xx/start.o (.text)
70 board/mpc8568mds/init.o (.text)
71 cpu/mpc85xx/traps.o (.text)
72 cpu/mpc85xx/interrupts.o (.text)
73 cpu/mpc85xx/cpu_init.o (.text)
74 cpu/mpc85xx/cpu.o (.text)
75 cpu/mpc85xx/speed.o (.text)
76 cpu/mpc85xx/pci.o (.text)
77 common/dlmalloc.o (.text)
78 lib_generic/crc32.o (.text)
79 lib_ppc/extable.o (.text)
80 lib_generic/zlib.o (.text)
81 *(.text)
82 *(.fixup)
83 *(.got1)
84 }
85 _etext = .;
86 PROVIDE (etext = .);
87 .rodata :
88 {
89 *(.rodata)
90 *(.rodata1)
91 *(.rodata.str1.4)
92 *(.eh_frame)
93 }
94 .fini : { *(.fini) } =0
95 .ctors : { *(.ctors) }
96 .dtors : { *(.dtors) }
97
98 /* Read-write section, merged into data segment: */
99 . = (. + 0x00FF) & 0xFFFFFF00;
100 _erotext = .;
101 PROVIDE (erotext = .);
102 .reloc :
103 {
104 *(.got)
105 _GOT2_TABLE_ = .;
106 *(.got2)
107 _FIXUP_TABLE_ = .;
108 *(.fixup)
109 }
110 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
111 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
112
113 .data :
114 {
115 *(.data)
116 *(.data1)
117 *(.sdata)
118 *(.sdata2)
119 *(.dynamic)
120 CONSTRUCTORS
121 }
122 _edata = .;
123 PROVIDE (edata = .);
124
125 . = .;
126 __u_boot_cmd_start = .;
127 .u_boot_cmd : { *(.u_boot_cmd) }
128 __u_boot_cmd_end = .;
129
130 . = .;
131 __start___ex_table = .;
132 __ex_table : { *(__ex_table) }
133 __stop___ex_table = .;
134
135 . = ALIGN(256);
136 __init_begin = .;
137 .text.init : { *(.text.init) }
138 .data.init : { *(.data.init) }
139 . = ALIGN(256);
140 __init_end = .;
141
142 __bss_start = .;
143 .bss :
144 {
145 *(.sbss) *(.scommon)
146 *(.dynbss)
147 *(.bss)
148 *(COMMON)
149 }
150 _end = . ;
151 PROVIDE (end = .);
152}