blob: 449d0645e490054a2d4f110130fe4cb411b5843b [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)
wdenk327f7a02001-11-28 17:49:55 +000025
26MEMORY {
Wolfgang Denk53677ef2008-05-20 16:00:29 +020027 ram (!rx) : org = 0x00000000 , LENGTH = 8M
28 code (!rx) : org = 0x00002000 , LENGTH = (4M - 0x2000)
29 rom (rx) : org = 0xfff00000 , LENGTH = 512K
wdenk327f7a02001-11-28 17:49:55 +000030}
31
32SECTIONS
33{
34 _f_init = .;
35 PROVIDE(_f_init = .);
36 _f_init_rom = .;
37 PROVIDE(_f_init_rom = .);
38
39 .init : {
Stefan Roesea47a12b2010-04-15 16:07:28 +020040 arch/powerpc/cpu/mpc824x/start.o (.text)
wdenk327f7a02001-11-28 17:49:55 +000041 *(.init)
42 } > ram
43 _init_size = SIZEOF(.init);
44 PROVIDE(_init_size = SIZEOF(.init));
45
46 ENTRY(_start)
47
48/* _ftext = .;
49 _ftext_rom = .;
50 _text_size = SIZEOF(.text);
51 */
52 .text : {
53 *(.text)
54 *(.got1)
55 } > ram
56 .rodata : { *(.rodata) } > ram
57 .dtors : { *(.dtors) } > ram
58 .data : { *(.data) } > ram
59 .sdata : { *(.sdata) } > ram
60 .sdata2 : { *(.sdata2)
61 *(.got)
62 _GOT2_TABLE_ = .;
63 *(.got2)
64 _FIXUP_TABLE_ = .;
65 *(.fixup)
66 } > ram
67 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
68 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
69
70 .sbss : { *(.sbss) } > ram
71 .sbss2 : { *(.sbss2) } > ram
72 .bss : { *(.bss) } > ram
73 .debug : { *(.debug) } > ram
74 .line : { *(.line) } > ram
75 .symtab : { *(.symtab) } > ram
76 .shrstrtab : { *(.shstrtab) } > ram
77 .strtab : { *(.strtab) } > ram
78 /* .reloc :
79 {
80 *(.got)
81 _GOT2_TABLE_ = .;
82 *(.got2)
83 _FIXUP_TABLE_ = .;
84 *(.fixup)
85 } > ram
86 */
wdenk8bde7f72003-06-27 21:31:46 +000087
88 __u_boot_cmd_start = .;
89 .u_boot_cmd : { *(.u_boot_cmd) }
90 __u_boot_cmd_end = .;
91
wdenk327f7a02001-11-28 17:49:55 +000092 __start___ex_table = .;
93 __ex_table : { *(__ex_table) } > ram
94 __stop___ex_table = .;
95
96
97 .ppcenv :
98 {
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +020099 common/env_embedded.o (.ppcenv)
wdenk327f7a02001-11-28 17:49:55 +0000100 } > ram
101
102 _end = . ;
103 PROVIDE (end = .);
104}