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