blob: 48e19fe2a2212645caf8ba34b3f74bfc5f685e22 [file] [log] [blame]
wdenk8b07a112004-07-10 21:45:47 +00001/*
2 * (C) Copyright 2002,2003,Motorola,Inc.
3 * Xianghua Xiao, X.Xiao@motorola.com.
4 *
5 * (C) Copyright 2004 Wind River Systems Inc <www.windriver.com>.
6 * Added support for Wind River SBC8560 board
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA
25 */
26
27OUTPUT_ARCH(powerpc)
28SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
29/* Do we need any of these for elf?
30 __DYNAMIC = 0; */
31SECTIONS
32{
33 .resetvec 0xFFFFFFFC :
34 {
35 *(.resetvec)
36 } = 0xffff
37
38 .bootpg 0xFFFFF000 :
39 {
40 cpu/mpc85xx/start.o (.bootpg)
41 board/sbc8560/init.o (.bootpg)
42 } = 0xffff
43
44 /* Read-only sections, merged into text segment: */
45 . = + SIZEOF_HEADERS;
46 .interp : { *(.interp) }
47 .hash : { *(.hash) }
48 .dynsym : { *(.dynsym) }
49 .dynstr : { *(.dynstr) }
50 .rel.text : { *(.rel.text) }
51 .rela.text : { *(.rela.text) }
52 .rel.data : { *(.rel.data) }
53 .rela.data : { *(.rela.data) }
54 .rel.rodata : { *(.rel.rodata) }
55 .rela.rodata : { *(.rela.rodata) }
56 .rel.got : { *(.rel.got) }
57 .rela.got : { *(.rela.got) }
58 .rel.ctors : { *(.rel.ctors) }
59 .rela.ctors : { *(.rela.ctors) }
60 .rel.dtors : { *(.rel.dtors) }
61 .rela.dtors : { *(.rela.dtors) }
62 .rel.bss : { *(.rel.bss) }
63 .rela.bss : { *(.rela.bss) }
64 .rel.plt : { *(.rel.plt) }
65 .rela.plt : { *(.rela.plt) }
66 .init : { *(.init) }
67 .plt : { *(.plt) }
68 .text :
69 {
70 cpu/mpc85xx/start.o (.text)
71 board/sbc8560/init.o (.text)
72 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)
79 cpu/mpc85xx/speed.o (.text)
80 cpu/mpc85xx/i2c.o (.text)
81 cpu/mpc85xx/spd_sdram.o (.text)
82 common/dlmalloc.o (.text)
83 lib_generic/crc32.o (.text)
84 lib_ppc/extable.o (.text)
85 lib_generic/zlib.o (.text)
86 *(.text)
87 *(.fixup)
88 *(.got1)
89 }
90 _etext = .;
91 PROVIDE (etext = .);
92 .rodata :
93 {
94 *(.rodata)
95 *(.rodata1)
96 *(.rodata.str1.4)
Wolfgang Denk74812662005-12-12 16:06:05 +010097 *(.eh_frame)
wdenk8b07a112004-07-10 21:45:47 +000098 }
99 .fini : { *(.fini) } =0
100 .ctors : { *(.ctors) }
101 .dtors : { *(.dtors) }
102
103 /* Read-write section, merged into data segment: */
104 . = (. + 0x00FF) & 0xFFFFFF00;
105 _erotext = .;
106 PROVIDE (erotext = .);
107 .reloc :
108 {
109 *(.got)
110 _GOT2_TABLE_ = .;
111 *(.got2)
112 _FIXUP_TABLE_ = .;
113 *(.fixup)
114 }
115 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
116 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
117
118 .data :
119 {
120 *(.data)
121 *(.data1)
122 *(.sdata)
123 *(.sdata2)
124 *(.dynamic)
125 CONSTRUCTORS
126 }
127 _edata = .;
128 PROVIDE (edata = .);
129
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200130 . = .;
wdenk8b07a112004-07-10 21:45:47 +0000131 __u_boot_cmd_start = .;
132 .u_boot_cmd : { *(.u_boot_cmd) }
133 __u_boot_cmd_end = .;
134
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200135 . = .;
wdenk8b07a112004-07-10 21:45:47 +0000136 __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}