blob: ef662fa7cb9ec3361fe4fa9635569063920a7aa3 [file] [log] [blame]
wdenk3bac3512003-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)
34SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
35/* Do we need any of these for elf?
36 __DYNAMIC = 0; */
37SECTIONS
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 Denkdd520bf2006-11-30 18:02:20 +010046 .rela.text : { *(.rela.text) }
wdenk3bac3512003-03-12 10:41:04 +000047 .rel.data : { *(.rel.data) }
Wolfgang Denkdd520bf2006-11-30 18:02:20 +010048 .rela.data : { *(.rela.data) }
49 .rel.rodata : { *(.rel.rodata) }
50 .rela.rodata : { *(.rela.rodata) }
wdenk3bac3512003-03-12 10:41:04 +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 /* WARNING - the following is hand-optimized to fit within */
66 /* the sector layout of our flash chips! XXX FIXME XXX */
67
68 cpu/mpc8xx/start.o (.text)
69 common/dlmalloc.o (.text)
70 lib_ppc/ppcstring.o (.text)
71 lib_generic/vsprintf.o (.text)
72 lib_generic/crc32.o (.text)
73 lib_generic/zlib.o (.text)
74 lib_generic/string.o (.text)
75 lib_ppc/cache.o (.text)
76 lib_ppc/extable.o (.text)
77 lib_ppc/time.o (.text)
78 lib_ppc/ticks.o (.text)
79
80 . = env_offset;
81 common/environment.o (.text)
82
83 *(.text)
84 *(.fixup)
85 *(.got1)
86 }
87 _etext = .;
88 PROVIDE (etext = .);
89 .rodata :
90 {
91 *(.rodata)
92 *(.rodata1)
wdenkb783eda2003-06-25 22:26:29 +000093 *(.rodata.str1.4)
Wolfgang Denk74812662005-12-12 16:06:05 +010094 *(.eh_frame)
wdenk3bac3512003-03-12 10:41:04 +000095 }
96 .fini : { *(.fini) } =0
97 .ctors : { *(.ctors) }
98 .dtors : { *(.dtors) }
99
100 /* Read-write section, merged into data segment: */
101 . = (. + 0x00FF) & 0xFFFFFF00;
102 _erotext = .;
103 PROVIDE (erotext = .);
104 .reloc :
105 {
106 *(.got)
107 _GOT2_TABLE_ = .;
108 *(.got2)
109 _FIXUP_TABLE_ = .;
110 *(.fixup)
111 }
112 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
113 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
114
115 .data :
116 {
117 *(.data)
118 *(.data1)
119 *(.sdata)
120 *(.sdata2)
121 *(.dynamic)
122 CONSTRUCTORS
123 }
124 _edata = .;
125 PROVIDE (edata = .);
126
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200127 . = .;
wdenk8bde7f72003-06-27 21:31:46 +0000128 __u_boot_cmd_start = .;
129 .u_boot_cmd : { *(.u_boot_cmd) }
130 __u_boot_cmd_end = .;
131
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200132 . = .;
wdenk3bac3512003-03-12 10:41:04 +0000133 __start___ex_table = .;
134 __ex_table : { *(__ex_table) }
135 __stop___ex_table = .;
136
137 . = ALIGN(256);
138 __init_begin = .;
139 .text.init : { *(.text.init) }
140 .data.init : { *(.data.init) }
141 . = ALIGN(256);
142 __init_end = .;
143
144 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +0100145 .bss (NOLOAD) :
wdenk3bac3512003-03-12 10:41:04 +0000146 {
147 *(.sbss) *(.scommon)
148 *(.dynbss)
149 *(.bss)
150 *(COMMON)
151 }
152 _end = . ;
153 PROVIDE (end = .);
154}