blob: d204304cf4e20e1e7a43fc35853a4982c1aab70d [file] [log] [blame]
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +09001/*
Jean-Christophe PLAGNIOL-VILLARD3931a372009-06-04 12:06:45 +02002 * Copyright (C) 2007
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +09003 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4 *
Jean-Christophe PLAGNIOL-VILLARD3931a372009-06-04 12:06:45 +02005 * Copyright (C) 2008-2009
6 * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
7 *
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +09008 * 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 /*
Jean-Christophe PLAGNIOL-VILLARD236aad82009-06-04 12:06:44 +020034 * entry and reloct_dst will be provided via ldflags
35 */
36 . = .;
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090037
38 PROVIDE (_ftext = .);
39 PROVIDE (_fcode = .);
40 PROVIDE (_start = .);
41
42 .text :
43 {
Nobuhiro Iwamatsub52da2a2011-03-07 16:36:21 +090044 KEEP(arch/sh/cpu/sh4/start.o (.text))
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090045 . = ALIGN(8192);
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +020046 common/env_embedded.o (.ppcenv)
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090047 . = ALIGN(8192);
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +020048 common/env_embedded.o (.ppcenvr)
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090049 . = ALIGN(8192);
50 *(.text)
51 . = ALIGN(4);
52 } =0xFF
53 PROVIDE (_ecode = .);
54 .rodata :
55 {
Trent Piephof62fb992009-02-18 15:22:05 -080056 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090057 . = ALIGN(4);
58 }
59 PROVIDE (_etext = .);
60
61
62 PROVIDE (_fdata = .);
63 .data :
64 {
65 *(.data)
66 . = ALIGN(4);
67 }
68 PROVIDE (_edata = .);
69
70 PROVIDE (_fgot = .);
71 .got :
72 {
73 *(.got)
74 . = ALIGN(4);
75 }
76 PROVIDE (_egot = .);
77
78 PROVIDE (__u_boot_cmd_start = .);
79 .u_boot_cmd :
80 {
81 *(.u_boot_cmd)
82 . = ALIGN(4);
83 }
84 PROVIDE (__u_boot_cmd_end = .);
85
Marek Vasut55675142012-10-12 10:27:03 +000086 .u_boot_list : {
87 #include <u-boot.lst>
88 }
89
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090090 PROVIDE (reloc_dst_end = .);
91 /* _reloc_dst_end = .; */
92
93 PROVIDE (bss_start = .);
94 PROVIDE (__bss_start = .);
Jean-Christophe PLAGNIOL-VILLARD3931a372009-06-04 12:06:45 +020095 .bss (NOLOAD) :
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +090096 {
97 *(.bss)
98 . = ALIGN(4);
99 }
100 PROVIDE (bss_end = .);
101
Po-Yu Chuang44c6e652011-03-01 22:59:59 +0000102 PROVIDE (__bss_end__ = .);
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +0900103}