blob: c0281311c5971bf171dcee1f1ff84cf30ab26690 [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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk327f7a02001-11-28 17:49:55 +00006 */
7
8OUTPUT_ARCH(powerpc)
wdenk327f7a02001-11-28 17:49:55 +00009
10MEMORY {
Wolfgang Denk53677ef2008-05-20 16:00:29 +020011 ram (!rx) : org = 0x00000000 , LENGTH = 8M
12 code (!rx) : org = 0x00002000 , LENGTH = (4M - 0x2000)
13 rom (rx) : org = 0xfff00000 , LENGTH = 512K
wdenk327f7a02001-11-28 17:49:55 +000014}
15
16SECTIONS
17{
18 _f_init = .;
19 PROVIDE(_f_init = .);
20 _f_init_rom = .;
21 PROVIDE(_f_init_rom = .);
22
23 .init : {
Stefan Roesea47a12b2010-04-15 16:07:28 +020024 arch/powerpc/cpu/mpc824x/start.o (.text)
wdenk327f7a02001-11-28 17:49:55 +000025 *(.init)
26 } > ram
27 _init_size = SIZEOF(.init);
28 PROVIDE(_init_size = SIZEOF(.init));
29
30 ENTRY(_start)
31
32/* _ftext = .;
33 _ftext_rom = .;
34 _text_size = SIZEOF(.text);
35 */
36 .text : {
37 *(.text)
38 *(.got1)
39 } > ram
40 .rodata : { *(.rodata) } > ram
41 .dtors : { *(.dtors) } > ram
42 .data : { *(.data) } > ram
43 .sdata : { *(.sdata) } > ram
44 .sdata2 : { *(.sdata2)
45 *(.got)
46 _GOT2_TABLE_ = .;
47 *(.got2)
48 _FIXUP_TABLE_ = .;
49 *(.fixup)
50 } > ram
51 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
52 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
53
54 .sbss : { *(.sbss) } > ram
55 .sbss2 : { *(.sbss2) } > ram
56 .bss : { *(.bss) } > ram
57 .debug : { *(.debug) } > ram
58 .line : { *(.line) } > ram
59 .symtab : { *(.symtab) } > ram
60 .shrstrtab : { *(.shstrtab) } > ram
61 .strtab : { *(.strtab) } > ram
62 /* .reloc :
63 {
64 *(.got)
65 _GOT2_TABLE_ = .;
66 *(.got2)
67 _FIXUP_TABLE_ = .;
68 *(.fixup)
69 } > ram
70 */
wdenk8bde7f72003-06-27 21:31:46 +000071
wdenk8bde7f72003-06-27 21:31:46 +000072
wdenk327f7a02001-11-28 17:49:55 +000073 __start___ex_table = .;
74 __ex_table : { *(__ex_table) } > ram
75 __stop___ex_table = .;
76
77
78 .ppcenv :
79 {
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +020080 common/env_embedded.o (.ppcenv)
wdenk327f7a02001-11-28 17:49:55 +000081 } > ram
82
Albert ARIBAUD59930532013-03-30 00:19:53 +000083 __bss_end = . ;
wdenk327f7a02001-11-28 17:49:55 +000084 PROVIDE (end = .);
85}