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