blob: 4a9a103bcb2101393ce05892864752c397835091 [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)
wdenk7abf0c52004-04-18 21:45:42 +000043 } = 0xffff
44
45 /* Read-only sections, merged into text segment: */
46 . = + SIZEOF_HEADERS;
47 .interp : { *(.interp) }
48 .hash : { *(.hash) }
49 .dynsym : { *(.dynsym) }
50 .dynstr : { *(.dynstr) }
51 .rel.text : { *(.rel.text) }
52 .rela.text : { *(.rela.text) }
53 .rel.data : { *(.rel.data) }
54 .rela.data : { *(.rela.data) }
55 .rel.rodata : { *(.rel.rodata) }
56 .rela.rodata : { *(.rela.rodata) }
57 .rel.got : { *(.rel.got) }
58 .rela.got : { *(.rela.got) }
59 .rel.ctors : { *(.rel.ctors) }
60 .rela.ctors : { *(.rela.ctors) }
61 .rel.dtors : { *(.rel.dtors) }
62 .rela.dtors : { *(.rela.dtors) }
63 .rel.bss : { *(.rel.bss) }
64 .rela.bss : { *(.rela.bss) }
65 .rel.plt : { *(.rel.plt) }
66 .rela.plt : { *(.rela.plt) }
67 .init : { *(.init) }
68 .plt : { *(.plt) }
69 .text :
70 {
71 cpu/mpc85xx/start.o (.text)
wdenk7abf0c52004-04-18 21:45:42 +000072 cpu/mpc85xx/commproc.o (.text)
73 cpu/mpc85xx/traps.o (.text)
74 cpu/mpc85xx/interrupts.o (.text)
75 cpu/mpc85xx/serial_scc.o (.text)
76 cpu/mpc85xx/ether_fcc.o (.text)
77 cpu/mpc85xx/cpu_init.o (.text)
78 cpu/mpc85xx/cpu.o (.text)
wdenk7abf0c52004-04-18 21:45:42 +000079 cpu/mpc85xx/speed.o (.text)
wdenk7abf0c52004-04-18 21:45:42 +000080 cpu/mpc85xx/spd_sdram.o (.text)
81 common/dlmalloc.o (.text)
82 lib_generic/crc32.o (.text)
83 lib_ppc/extable.o (.text)
84 lib_generic/zlib.o (.text)
85 *(.text)
86 *(.fixup)
87 *(.got1)
88 }
89 _etext = .;
90 PROVIDE (etext = .);
91 .rodata :
92 {
93 *(.rodata)
94 *(.rodata1)
95 *(.rodata.str1.4)
Wolfgang Denk74812662005-12-12 16:06:05 +010096 *(.eh_frame)
wdenk7abf0c52004-04-18 21:45:42 +000097 }
98 .fini : { *(.fini) } =0
99 .ctors : { *(.ctors) }
100 .dtors : { *(.dtors) }
101
102 /* Read-write section, merged into data segment: */
103 . = (. + 0x00FF) & 0xFFFFFF00;
104 _erotext = .;
105 PROVIDE (erotext = .);
106 .reloc :
107 {
108 *(.got)
109 _GOT2_TABLE_ = .;
110 *(.got2)
111 _FIXUP_TABLE_ = .;
112 *(.fixup)
113 }
114 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
115 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
116
117 .data :
118 {
119 *(.data)
120 *(.data1)
121 *(.sdata)
122 *(.sdata2)
123 *(.dynamic)
124 CONSTRUCTORS
125 }
126 _edata = .;
127 PROVIDE (edata = .);
128
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200129 . = .;
wdenk7abf0c52004-04-18 21:45:42 +0000130 __u_boot_cmd_start = .;
131 .u_boot_cmd : { *(.u_boot_cmd) }
132 __u_boot_cmd_end = .;
133
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200134 . = .;
wdenk7abf0c52004-04-18 21:45:42 +0000135 __start___ex_table = .;
136 __ex_table : { *(__ex_table) }
137 __stop___ex_table = .;
138
139 . = ALIGN(256);
140 __init_begin = .;
141 .text.init : { *(.text.init) }
142 .data.init : { *(.data.init) }
143 . = ALIGN(256);
144 __init_end = .;
145
146 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +0100147 .bss (NOLOAD) :
wdenk7abf0c52004-04-18 21:45:42 +0000148 {
149 *(.sbss) *(.scommon)
150 *(.dynbss)
151 *(.bss)
152 *(COMMON)
153 }
154 _end = . ;
155 PROVIDE (end = .);
156}