blob: 45aaadc145191952663feedf213b26e0becc55c2 [file] [log] [blame]
wdenk384cc682005-04-03 22:35:21 +00001/*
2 * (C) Copyright 2002,2003, Motorola,Inc.
3 * Xianghua Xiao, X.Xiao@motorola.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)
wdenk384cc682005-04-03 22:35:21 +000025/* Do we need any of these for elf?
26 __DYNAMIC = 0; */
27SECTIONS
28{
29 .resetvec 0xFFFFFFFC :
30 {
31 *(.resetvec)
32 } = 0xffff
33
34 .bootpg 0xFFFFF000 :
35 {
36 cpu/mpc85xx/start.o (.bootpg)
wdenk384cc682005-04-03 22:35:21 +000037 } = 0xffff
38
39 /* Read-only sections, merged into text segment: */
40 . = + SIZEOF_HEADERS;
41 .interp : { *(.interp) }
42 .hash : { *(.hash) }
43 .dynsym : { *(.dynsym) }
44 .dynstr : { *(.dynstr) }
45 .rel.text : { *(.rel.text) }
Wolfgang Denk53677ef2008-05-20 16:00:29 +020046 .rela.text : { *(.rela.text) }
wdenk384cc682005-04-03 22:35:21 +000047 .rel.data : { *(.rel.data) }
Wolfgang Denk53677ef2008-05-20 16:00:29 +020048 .rela.data : { *(.rela.data) }
49 .rel.rodata : { *(.rel.rodata) }
50 .rela.rodata : { *(.rela.rodata) }
wdenk384cc682005-04-03 22:35:21 +000051 .rel.got : { *(.rel.got) }
52 .rela.got : { *(.rela.got) }
53 .rel.ctors : { *(.rel.ctors) }
54 .rela.ctors : { *(.rela.ctors) }
55 .rel.dtors : { *(.rel.dtors) }
56 .rela.dtors : { *(.rela.dtors) }
57 .rel.bss : { *(.rel.bss) }
58 .rela.bss : { *(.rela.bss) }
59 .rel.plt : { *(.rel.plt) }
60 .rela.plt : { *(.rela.plt) }
61 .init : { *(.init) }
62 .plt : { *(.plt) }
63 .text :
64 {
65 cpu/mpc85xx/start.o (.text)
wdenk384cc682005-04-03 22:35:21 +000066 cpu/mpc85xx/traps.o (.text)
67 cpu/mpc85xx/interrupts.o (.text)
68 cpu/mpc85xx/cpu_init.o (.text)
69 cpu/mpc85xx/cpu.o (.text)
wdenk384cc682005-04-03 22:35:21 +000070 cpu/mpc85xx/speed.o (.text)
71 cpu/mpc85xx/pci.o (.text)
72 common/dlmalloc.o (.text)
73 lib_generic/crc32.o (.text)
74 lib_ppc/extable.o (.text)
75 lib_generic/zlib.o (.text)
76 *(.text)
77 *(.fixup)
78 *(.got1)
79 }
80 _etext = .;
81 PROVIDE (etext = .);
82 .rodata :
83 {
Wolfgang Denk74812662005-12-12 16:06:05 +010084 *(.eh_frame)
Trent Piephof62fb992009-02-18 15:22:05 -080085 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenk384cc682005-04-03 22:35:21 +000086 }
87 .fini : { *(.fini) } =0
88 .ctors : { *(.ctors) }
89 .dtors : { *(.dtors) }
90
91 /* Read-write section, merged into data segment: */
92 . = (. + 0x00FF) & 0xFFFFFF00;
93 _erotext = .;
94 PROVIDE (erotext = .);
95 .reloc :
96 {
97 *(.got)
98 _GOT2_TABLE_ = .;
99 *(.got2)
100 _FIXUP_TABLE_ = .;
101 *(.fixup)
102 }
103 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
104 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
105
106 .data :
107 {
108 *(.data)
109 *(.data1)
110 *(.sdata)
111 *(.sdata2)
112 *(.dynamic)
113 CONSTRUCTORS
114 }
115 _edata = .;
116 PROVIDE (edata = .);
117
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200118 . = .;
wdenk384cc682005-04-03 22:35:21 +0000119 __u_boot_cmd_start = .;
120 .u_boot_cmd : { *(.u_boot_cmd) }
121 __u_boot_cmd_end = .;
122
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200123 . = .;
wdenk384cc682005-04-03 22:35:21 +0000124 __start___ex_table = .;
125 __ex_table : { *(__ex_table) }
126 __stop___ex_table = .;
127
128 . = ALIGN(256);
129 __init_begin = .;
130 .text.init : { *(.text.init) }
131 .data.init : { *(.data.init) }
132 . = ALIGN(256);
133 __init_end = .;
134
135 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +0100136 .bss (NOLOAD) :
wdenk384cc682005-04-03 22:35:21 +0000137 {
138 *(.sbss) *(.scommon)
139 *(.dynbss)
140 *(.bss)
141 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +0530142 . = ALIGN(4);
wdenk384cc682005-04-03 22:35:21 +0000143 }
144 _end = . ;
145 PROVIDE (end = .);
146}