blob: 731765256964cd557face20409dee0edbc0a0910 [file] [log] [blame]
Xiangfu Liu3c945542011-10-12 12:24:06 +08001/*
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
21OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
22
23OUTPUT_ARCH(mips)
24ENTRY(_start)
25SECTIONS
26{
27 . = 0x00000000;
28
29 . = ALIGN(4);
30 .text :
31 {
32 *(.text*)
33 }
34
35 . = ALIGN(4);
36 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
37
38 . = ALIGN(4);
39 .data : { *(.data*) }
40
41 . = .;
42 _gp = ALIGN(16) + 0x7ff0;
43
44 __got_start = .;
45 .got : { *(.got) }
46 __got_end = .;
47
48 .sdata : { *(.sdata*) }
49
50 __u_boot_cmd_start = .;
51 .u_boot_cmd : { *(.u_boot_cmd) }
52 __u_boot_cmd_end = .;
53
54 uboot_end_data = .;
55 num_got_entries = (__got_end - __got_start) >> 2;
56
57 . = ALIGN(4);
58 .sbss : { *(.sbss*) }
59 .bss : { *(.bss*) . = ALIGN(4); }
60 uboot_end = .;
61}