blob: ba71a9195ee41826575cbd79ec61a7f3e5d4ed59 [file] [log] [blame]
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09001/*
2 * Copyrigth (c) 2007
3 * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
4 *
5 * Copyrigth (c) 2007
6 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA
25 */
26
27OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
28OUTPUT_ARCH(sh)
29ENTRY(_start)
30
31SECTIONS
32{
33 /*
34 Base address of internal SDRAM is 0x0C000000.
35 Although size of SDRAM can be either 16 or 32 MBytes,
36 we assume 16 MBytes (ie ignore upper half if the full
37 32 MBytes is present).
38
39 NOTE: This address must match with the definition of
40 TEXT_BASE in config.mk (in this directory).
41
42 */
43 . = 0x8C000000 + (64*1024*1024) - (256*1024);
44
45 PROVIDE (reloc_dst = .);
46
47 PROVIDE (_ftext = .);
48 PROVIDE (_fcode = .);
49 PROVIDE (_start = .);
50
51 .text :
52 {
53 cpu/sh3/start.o (.text)
54 . = ALIGN(8192);
55 common/environment.o (.ppcenv)
56 . = ALIGN(8192);
57 common/environment.o (.ppcenvr)
58 . = ALIGN(8192);
59 *(.text)
60 . = ALIGN(4);
61 } =0xFF
62 PROVIDE (_ecode = .);
63 .rodata :
64 {
65 *(.rodata)
66 . = ALIGN(4);
67 }
68 PROVIDE (_etext = .);
69
70
71 PROVIDE (_fdata = .);
72 .data :
73 {
74 *(.data)
75 . = ALIGN(4);
76 }
77 PROVIDE (_edata = .);
78
79 PROVIDE (_fgot = .);
80 .got :
81 {
82 *(.got)
83 . = ALIGN(4);
84 }
85 PROVIDE (_egot = .);
86
87 PROVIDE (__u_boot_cmd_start = .);
88 .u_boot_cmd :
89 {
90 *(.u_boot_cmd)
91 . = ALIGN(4);
92 }
93 PROVIDE (__u_boot_cmd_end = .);
94
95 PROVIDE (reloc_dst_end = .);
96 /* _reloc_dst_end = .; */
97
98 PROVIDE (bss_start = .);
99 PROVIDE (__bss_start = .);
100 .bss :
101 {
102 *(.bss)
103 . = ALIGN(4);
104 }
105 PROVIDE (bss_end = .);
106
107 PROVIDE (_end = .);
108}