]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/sh7785lcr/u-boot.lds
rename environment.c in env_embedded.c to reflect is functionality
[karo-tx-uboot.git] / board / sh7785lcr / u-boot.lds
1 /*
2  * Copyrigth (c) 2007
3  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4  * Copyrigth (c) 2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
5  *
6  * See file CREDITS for list of people who contributed to this
7  * project.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22  * MA 02111-1307 USA
23  */
24
25 OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
26 OUTPUT_ARCH(sh)
27 ENTRY(_start)
28
29 SECTIONS
30 {
31         . = 0x08000000 + (128 * 1024 * 1024) - (512 * 1024);
32
33         PROVIDE (reloc_dst = .);
34
35         PROVIDE (_ftext = .);
36         PROVIDE (_fcode = .);
37         PROVIDE (_start = .);
38
39         .text :
40         {
41                 cpu/sh4/start.o         (.text)
42                 . = ALIGN(8192);
43                 common/env_embedded.o   (.ppcenv)
44                 . = ALIGN(8192);
45                 common/env_embedded.o   (.ppcenvr)
46                 . = ALIGN(8192);
47                 *(.text)
48                 . = ALIGN(4);
49         } =0xFF
50         PROVIDE (_ecode = .);
51         .rodata :
52         {
53                 *(.rodata)
54                 . = ALIGN(4);
55         }
56         PROVIDE (_etext = .);
57
58
59         PROVIDE (_fdata = .);
60         .data :
61         {
62                 *(.data)
63                 . = ALIGN(4);
64         }
65         PROVIDE (_edata = .);
66
67         PROVIDE (_fgot = .);
68         .got :
69         {
70                 *(.got)
71                 . = ALIGN(4);
72         }
73         PROVIDE (_egot = .);
74
75         PROVIDE (__u_boot_cmd_start = .);
76         .u_boot_cmd :
77         {
78                 *(.u_boot_cmd)
79                 . = ALIGN(4);
80         }
81         PROVIDE (__u_boot_cmd_end = .);
82
83         PROVIDE (reloc_dst_end = .);
84         /* _reloc_dst_end = .; */
85
86         PROVIDE (bss_start = .);
87         PROVIDE (__bss_start = .);
88         .bss :
89         {
90                 *(.bss)
91                 . = ALIGN(4);
92         }
93         PROVIDE (bss_end = .);
94
95         PROVIDE (_end = .);
96 }
97