blob: 9077e69717f0f8d6802be4650ac61524e88b6a3e [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)
Wolfgang Denke71d99d2010-11-20 15:07:45 +010034
wdenkef5fe752003-03-12 10:41:04 +000035SECTIONS
36{
37 /* Read-only sections, merged into text segment: */
38 . = + SIZEOF_HEADERS;
wdenkef5fe752003-03-12 10:41:04 +000039 .text :
40 {
41 /* WARNING - the following is hand-optimized to fit within */
42 /* the sector layout of our flash chips! XXX FIXME XXX */
43
Wolfgang Denke71d99d2010-11-20 15:07:45 +010044 arch/powerpc/cpu/mpc8xx/start.o (.text*)
45 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
46 common/libcommon.o (.text*)
47 arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
48 board/LEOX/elpt860/libelpt860.o (.text*)
49 arch/powerpc/lib/libpowerpc.o (.text*)
50/* drivers/rtc/librtc.o (.text*) */
wdenkef5fe752003-03-12 10:41:04 +000051
52 . = env_offset;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010053 common/env_embedded.o (.text*)
wdenkef5fe752003-03-12 10:41:04 +000054
Wolfgang Denke71d99d2010-11-20 15:07:45 +010055 *(.text*)
wdenkef5fe752003-03-12 10:41:04 +000056 }
57 _etext = .;
58 PROVIDE (etext = .);
59 .rodata :
60 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080061 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkef5fe752003-03-12 10:41:04 +000062 }
wdenkef5fe752003-03-12 10:41:04 +000063
64 /* Read-write section, merged into data segment: */
65 . = (. + 0x00FF) & 0xFFFFFF00;
66 _erotext = .;
67 PROVIDE (erotext = .);
68 .reloc :
69 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010070 KEEP(*(.got))
wdenkef5fe752003-03-12 10:41:04 +000071 _GOT2_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010072 KEEP(*(.got2))
wdenkef5fe752003-03-12 10:41:04 +000073 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010074 KEEP(*(.fixup))
wdenkef5fe752003-03-12 10:41:04 +000075 }
76 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
77 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
78
79 .data :
80 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010081 *(.data*)
82 *(.sdata*)
wdenkef5fe752003-03-12 10:41:04 +000083 }
84 _edata = .;
85 PROVIDE (edata = .);
86
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020087 . = .;
wdenk57b2d802003-06-27 21:31:46 +000088 __u_boot_cmd_start = .;
89 .u_boot_cmd : { *(.u_boot_cmd) }
90 __u_boot_cmd_end = .;
91
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020092 . = .;
wdenkef5fe752003-03-12 10:41:04 +000093 __start___ex_table = .;
94 __ex_table : { *(__ex_table) }
95 __stop___ex_table = .;
96
97 . = ALIGN(256);
98 __init_begin = .;
99 .text.init : { *(.text.init) }
100 .data.init : { *(.data.init) }
101 . = ALIGN(256);
102 __init_end = .;
103
104 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +0100105 .bss (NOLOAD) :
wdenkef5fe752003-03-12 10:41:04 +0000106 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +0100107 *(.bss*)
108 *(.sbss*)
wdenkef5fe752003-03-12 10:41:04 +0000109 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +0530110 . = ALIGN(4);
wdenkef5fe752003-03-12 10:41:04 +0000111 }
112 _end = . ;
113 PROVIDE (end = .);
114}