blob: eb47ae670db3f7ed28689a49884c8e412191d4a4 [file] [log] [blame]
wdenk327f7a02001-11-28 17:49:55 +00001/*
2 * (C) Copyright 2000
3 * Rob Taylor, Flying Pig Systems Ltd. robt@flyingpig.com
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24OUTPUT_ARCH(powerpc)
25SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
26
27MEMORY {
28 ram (!rx) : org = 0x00000000 , LENGTH = 8M
29 code (!rx) : org = 0x00002000 , LENGTH = (4M - 0x2000)
30 rom (rx) : org = 0xfff00000 , LENGTH = 512K
31}
32
33SECTIONS
34{
35 _f_init = .;
36 PROVIDE(_f_init = .);
37 _f_init_rom = .;
38 PROVIDE(_f_init_rom = .);
39
40 .init : {
41 cpu/mpc824x/start.o (.text)
42 *(.init)
43 } > ram
44 _init_size = SIZEOF(.init);
45 PROVIDE(_init_size = SIZEOF(.init));
46
47 ENTRY(_start)
48
49/* _ftext = .;
50 _ftext_rom = .;
51 _text_size = SIZEOF(.text);
52 */
53 .text : {
54 *(.text)
55 *(.got1)
56 } > ram
57 .rodata : { *(.rodata) } > ram
58 .dtors : { *(.dtors) } > ram
59 .data : { *(.data) } > ram
60 .sdata : { *(.sdata) } > ram
61 .sdata2 : { *(.sdata2)
62 *(.got)
63 _GOT2_TABLE_ = .;
64 *(.got2)
65 _FIXUP_TABLE_ = .;
66 *(.fixup)
67 } > ram
68 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
69 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
70
71 .sbss : { *(.sbss) } > ram
72 .sbss2 : { *(.sbss2) } > ram
73 .bss : { *(.bss) } > ram
74 .debug : { *(.debug) } > ram
75 .line : { *(.line) } > ram
76 .symtab : { *(.symtab) } > ram
77 .shrstrtab : { *(.shstrtab) } > ram
78 .strtab : { *(.strtab) } > ram
79 /* .reloc :
80 {
81 *(.got)
82 _GOT2_TABLE_ = .;
83 *(.got2)
84 _FIXUP_TABLE_ = .;
85 *(.fixup)
86 } > ram
87 */
wdenk8bde7f72003-06-27 21:31:46 +000088
89 __u_boot_cmd_start = .;
90 .u_boot_cmd : { *(.u_boot_cmd) }
91 __u_boot_cmd_end = .;
92
wdenk327f7a02001-11-28 17:49:55 +000093 __start___ex_table = .;
94 __ex_table : { *(__ex_table) } > ram
95 __stop___ex_table = .;
96
97
98 .ppcenv :
99 {
100 common/environment.o (.ppcenv)
101 } > ram
102
103 _end = . ;
104 PROVIDE (end = .);
105}