blob: c6b1f94ebdd4b7adc24bea44bf3ef75d31540fa6 [file] [log] [blame]
wdenkef5fe752003-03-12 10:41:04 +00001/*
2**=====================================================================
3**
4** Copyright (C) 2000, 2001, 2002, 2003
5** The LEOX team <team@leox.org>, http://www.leox.org
6**
7** LEOX.org is about the development of free hardware and software resources
8** for system on chip.
9**
10** Description: U-Boot port on the LEOX's ELPT860 CPU board
11** ~~~~~~~~~~~
12**
13**=====================================================================
14**
15** This program is free software; you can redistribute it and/or
16** modify it under the terms of the GNU General Public License as
17** published by the Free Software Foundation; either version 2 of
18** the License, or (at your option) any later version.
19**
20** This program is distributed in the hope that it will be useful,
21** but WITHOUT ANY WARRANTY; without even the implied warranty of
22** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23** GNU General Public License for more details.
24**
25** You should have received a copy of the GNU General Public License
26** along with this program; if not, write to the Free Software
27** Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28** MA 02111-1307 USA
29**
30**=====================================================================
31*/
32
33OUTPUT_ARCH(powerpc)
wdenkef5fe752003-03-12 10:41:04 +000034/* Do we need any of these for elf?
35 __DYNAMIC = 0; */
36SECTIONS
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) }
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +010045 .rela.text : { *(.rela.text) }
wdenkef5fe752003-03-12 10:41:04 +000046 .rel.data : { *(.rel.data) }
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +010047 .rela.data : { *(.rela.data) }
48 .rel.rodata : { *(.rel.rodata) }
49 .rela.rodata : { *(.rela.rodata) }
wdenkef5fe752003-03-12 10:41:04 +000050 .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 /* WARNING - the following is hand-optimized to fit within */
65 /* the sector layout of our flash chips! XXX FIXME XXX */
66
67 cpu/mpc8xx/start.o (.text)
68 common/dlmalloc.o (.text)
69 lib_ppc/ppcstring.o (.text)
70 lib_generic/vsprintf.o (.text)
71 lib_generic/crc32.o (.text)
72 lib_generic/zlib.o (.text)
73 lib_generic/string.o (.text)
74 lib_ppc/cache.o (.text)
75 lib_ppc/extable.o (.text)
76 lib_ppc/time.o (.text)
77 lib_ppc/ticks.o (.text)
78
79 . = env_offset;
Jean-Christophe PLAGNIOL-VILLARD4436c1e2008-09-10 22:48:01 +020080 common/env_embedded.o (.text)
wdenkef5fe752003-03-12 10:41:04 +000081
82 *(.text)
83 *(.fixup)
84 *(.got1)
85 }
86 _etext = .;
87 PROVIDE (etext = .);
88 .rodata :
89 {
Wolfgang Denkaaa7c002005-12-12 16:06:05 +010090 *(.eh_frame)
Trent Piepho4438e5e2009-02-18 15:22:05 -080091 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkef5fe752003-03-12 10:41:04 +000092 }
93 .fini : { *(.fini) } =0
94 .ctors : { *(.ctors) }
95 .dtors : { *(.dtors) }
96
97 /* Read-write section, merged into data segment: */
98 . = (. + 0x00FF) & 0xFFFFFF00;
99 _erotext = .;
100 PROVIDE (erotext = .);
101 .reloc :
102 {
103 *(.got)
104 _GOT2_TABLE_ = .;
105 *(.got2)
106 _FIXUP_TABLE_ = .;
107 *(.fixup)
108 }
109 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
110 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
111
112 .data :
113 {
114 *(.data)
115 *(.data1)
116 *(.sdata)
117 *(.sdata2)
118 *(.dynamic)
119 CONSTRUCTORS
120 }
121 _edata = .;
122 PROVIDE (edata = .);
123
Wolfgang Denk5dd2c652005-08-31 12:28:00 +0200124 . = .;
wdenk57b2d802003-06-27 21:31:46 +0000125 __u_boot_cmd_start = .;
126 .u_boot_cmd : { *(.u_boot_cmd) }
127 __u_boot_cmd_end = .;
128
Wolfgang Denk5dd2c652005-08-31 12:28:00 +0200129 . = .;
wdenkef5fe752003-03-12 10:41:04 +0000130 __start___ex_table = .;
131 __ex_table : { *(__ex_table) }
132 __stop___ex_table = .;
133
134 . = ALIGN(256);
135 __init_begin = .;
136 .text.init : { *(.text.init) }
137 .data.init : { *(.data.init) }
138 . = ALIGN(256);
139 __init_end = .;
140
141 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +0100142 .bss (NOLOAD) :
wdenkef5fe752003-03-12 10:41:04 +0000143 {
144 *(.sbss) *(.scommon)
145 *(.dynbss)
146 *(.bss)
147 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +0530148 . = ALIGN(4);
wdenkef5fe752003-03-12 10:41:04 +0000149 }
150 _end = . ;
151 PROVIDE (end = .);
152}