nuport-mac: various fixes
[openwrt/staging/wigyori.git] / package / uboot-xburst / files / board / sakc / u-boot-nand.lds
1 /*
2 * (C) Copyright 2006
3 * Ingenic Semiconductor, <jlwei@ingenic.cn>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
19 */
20
21 OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
22
23 OUTPUT_ARCH(mips)
24 ENTRY(_start)
25 SECTIONS
26 {
27 . = 0x00000000;
28
29 . = ALIGN(4);
30 .text :
31 {
32 *(.text)
33 }
34
35 . = ALIGN(4);
36 .rodata : { *(.rodata) }
37
38 . = ALIGN(4);
39 .data : { *(.data) }
40
41 . = ALIGN(4);
42 .sdata : { *(.sdata) }
43
44 _gp = ALIGN(16);
45
46 __got_start = .;
47 .got : { *(.got) }
48 __got_end = .;
49
50 .sdata : { *(.sdata) }
51
52 __u_boot_cmd_start = .;
53 .u_boot_cmd : { *(.u_boot_cmd) }
54 __u_boot_cmd_end = .;
55
56 uboot_end_data = .;
57 num_got_entries = (__got_end - __got_start) >> 2;
58
59 . = ALIGN(4);
60 .sbss : { *(.sbss) }
61 .bss : { *(.bss) }
62 uboot_end = .;
63 }