blob: 03f62b82594d214baccb0d63294c215c17a40b88 [file] [log] [blame]
Jon Loeligerd9b94f22005-07-25 14:05:07 -05001/*
Ed Swarthoutf2cff6b2007-07-27 01:50:52 -05002 * Copyright 2004, 2007 Freescale Semiconductor.
Jon Loeligerd9b94f22005-07-25 14:05:07 -05003 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23OUTPUT_ARCH(powerpc)
Jon Loeligerd9b94f22005-07-25 14:05:07 -050024/* Do we need any of these for elf?
25 __DYNAMIC = 0; */
26SECTIONS
27{
28 .resetvec 0xFFFFFFFC :
29 {
30 *(.resetvec)
31 } = 0xffff
32
33 .bootpg 0xFFFFF000 :
34 {
35 cpu/mpc85xx/start.o (.bootpg)
Jon Loeligerd9b94f22005-07-25 14:05:07 -050036 } = 0xffff
37
38 /* Read-only sections, merged into text segment: */
39 . = + SIZEOF_HEADERS;
40 .interp : { *(.interp) }
41 .hash : { *(.hash) }
42 .dynsym : { *(.dynsym) }
43 .dynstr : { *(.dynstr) }
44 .rel.text : { *(.rel.text) }
45 .rela.text : { *(.rela.text) }
46 .rel.data : { *(.rel.data) }
47 .rela.data : { *(.rela.data) }
48 .rel.rodata : { *(.rel.rodata) }
49 .rela.rodata : { *(.rela.rodata) }
50 .rel.got : { *(.rel.got) }
51 .rela.got : { *(.rela.got) }
52 .rel.ctors : { *(.rel.ctors) }
53 .rela.ctors : { *(.rela.ctors) }
54 .rel.dtors : { *(.rel.dtors) }
55 .rela.dtors : { *(.rela.dtors) }
56 .rel.bss : { *(.rel.bss) }
57 .rela.bss : { *(.rela.bss) }
58 .rel.plt : { *(.rel.plt) }
59 .rela.plt : { *(.rela.plt) }
60 .init : { *(.init) }
61 .plt : { *(.plt) }
62 .text :
63 {
64 cpu/mpc85xx/start.o (.text)
Jon Loeligerd9b94f22005-07-25 14:05:07 -050065 cpu/mpc85xx/traps.o (.text)
66 cpu/mpc85xx/interrupts.o (.text)
67 cpu/mpc85xx/cpu_init.o (.text)
68 cpu/mpc85xx/cpu.o (.text)
Jean-Christophe PLAGNIOL-VILLARD2439e4b2007-11-21 21:19:24 +010069 drivers/net/tsec.o (.text)
Jon Loeligerd9b94f22005-07-25 14:05:07 -050070 cpu/mpc85xx/speed.o (.text)
Jon Loeligerd9b94f22005-07-25 14:05:07 -050071 common/dlmalloc.o (.text)
72 lib_generic/crc32.o (.text)
73 lib_ppc/extable.o (.text)
74 lib_generic/zlib.o (.text)
75 *(.text)
76 *(.fixup)
77 *(.got1)
78 }
79 _etext = .;
80 PROVIDE (etext = .);
81 .rodata :
82 {
83 *(.rodata)
84 *(.rodata1)
85 *(.rodata.str1.4)
Wolfgang Denk74812662005-12-12 16:06:05 +010086 *(.eh_frame)
Jon Loeligerd9b94f22005-07-25 14:05:07 -050087 }
88 .fini : { *(.fini) } =0
89 .ctors : { *(.ctors) }
90 .dtors : { *(.dtors) }
91
92 /* Read-write section, merged into data segment: */
93 . = (. + 0x00FF) & 0xFFFFFF00;
94 _erotext = .;
95 PROVIDE (erotext = .);
96 .reloc :
97 {
98 *(.got)
99 _GOT2_TABLE_ = .;
100 *(.got2)
101 _FIXUP_TABLE_ = .;
102 *(.fixup)
103 }
104 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
105 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
106
107 .data :
108 {
109 *(.data)
110 *(.data1)
111 *(.sdata)
112 *(.sdata2)
113 *(.dynamic)
114 CONSTRUCTORS
115 }
116 _edata = .;
117 PROVIDE (edata = .);
118
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200119 . = .;
Jon Loeligerd9b94f22005-07-25 14:05:07 -0500120 __u_boot_cmd_start = .;
121 .u_boot_cmd : { *(.u_boot_cmd) }
122 __u_boot_cmd_end = .;
123
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200124 . = .;
Jon Loeligerd9b94f22005-07-25 14:05:07 -0500125 __start___ex_table = .;
126 __ex_table : { *(__ex_table) }
127 __stop___ex_table = .;
128
129 . = ALIGN(256);
130 __init_begin = .;
131 .text.init : { *(.text.init) }
132 .data.init : { *(.data.init) }
133 . = ALIGN(256);
134 __init_end = .;
135
136 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +0100137 .bss (NOLOAD) :
Jon Loeligerd9b94f22005-07-25 14:05:07 -0500138 {
139 *(.sbss) *(.scommon)
140 *(.dynbss)
141 *(.bss)
142 *(COMMON)
143 }
144 _end = . ;
145 PROVIDE (end = .);
146}