blob: 3bc615021dc7506fde5497cc33df8cbe603fa04e [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)
wdenk7abf0c52004-04-18 21:45:42 +000081 cpu/mpc85xx/speed.o (.text)
82 cpu/mpc85xx/i2c.o (.text)
83 cpu/mpc85xx/spd_sdram.o (.text)
84 common/dlmalloc.o (.text)
85 lib_generic/crc32.o (.text)
86 lib_ppc/extable.o (.text)
87 lib_generic/zlib.o (.text)
88 *(.text)
89 *(.fixup)
90 *(.got1)
91 }
92 _etext = .;
93 PROVIDE (etext = .);
94 .rodata :
95 {
96 *(.rodata)
97 *(.rodata1)
98 *(.rodata.str1.4)
Wolfgang Denk74812662005-12-12 16:06:05 +010099 *(.eh_frame)
wdenk7abf0c52004-04-18 21:45:42 +0000100 }
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
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200132 . = .;
wdenk7abf0c52004-04-18 21:45:42 +0000133 __u_boot_cmd_start = .;
134 .u_boot_cmd : { *(.u_boot_cmd) }
135 __u_boot_cmd_end = .;
136
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200137 . = .;
wdenk7abf0c52004-04-18 21:45:42 +0000138 __start___ex_table = .;
139 __ex_table : { *(__ex_table) }
140 __stop___ex_table = .;
141
142 . = ALIGN(256);
143 __init_begin = .;
144 .text.init : { *(.text.init) }
145 .data.init : { *(.data.init) }
146 . = ALIGN(256);
147 __init_end = .;
148
149 __bss_start = .;
150 .bss :
151 {
152 *(.sbss) *(.scommon)
153 *(.dynbss)
154 *(.bss)
155 *(COMMON)
156 }
157 _end = . ;
158 PROVIDE (end = .);
159}