blob: 790b5b840d457499bf806d7a1e5b66536f5f84fd [file] [log] [blame]
Yoshihiro Shimoda8e9c8972011-02-02 10:05:36 +09001/*
2 * Copyright (C) 2007
3 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4 *
5 * Copyright (C) 2011
6 * Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
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 * entry and reloct_dst will be provided via ldflags
35 */
36 . = .;
37
38 PROVIDE (_ftext = .);
39 PROVIDE (_fcode = .);
40 PROVIDE (_start = .);
41
42 .text :
43 {
44 arch/sh/cpu/sh4/start.o (.text)
45 *(.spiboot1.text)
46 *(.spiboot2.text)
47 . = ALIGN(8192);
48 common/env_embedded.o (.ppcenv)
49 . = ALIGN(8192);
50 common/env_embedded.o (.ppcenvr)
51 . = ALIGN(8192);
52 *(.text)
53 . = ALIGN(4);
54 } =0xFF
55 PROVIDE (_ecode = .);
56 .rodata :
57 {
58 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
59 . = ALIGN(4);
60 }
61 PROVIDE (_etext = .);
62
63
64 PROVIDE (_fdata = .);
65 .data :
66 {
67 *(.data)
68 . = ALIGN(4);
69 }
70 PROVIDE (_edata = .);
71
72 PROVIDE (_fgot = .);
73 .got :
74 {
75 *(.got)
76 . = ALIGN(4);
77 }
78 PROVIDE (_egot = .);
79
80 PROVIDE (__u_boot_cmd_start = .);
81 .u_boot_cmd :
82 {
83 *(.u_boot_cmd)
84 . = ALIGN(4);
85 }
86 PROVIDE (__u_boot_cmd_end = .);
87
88 PROVIDE (reloc_dst_end = .);
89 /* _reloc_dst_end = .; */
90
91 PROVIDE (bss_start = .);
92 PROVIDE (__bss_start = .);
93 .bss (NOLOAD) :
94 {
95 *(.bss)
96 . = ALIGN(4);
97 }
98 PROVIDE (bss_end = .);
99
Po-Yu Chuang44c6e652011-03-01 22:59:59 +0000100 PROVIDE (__bss_end__ = .);
Yoshihiro Shimoda8e9c8972011-02-02 10:05:36 +0900101}