blob: b3cb86974837581cd541b8a8b5a282a2ee530cf3 [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
Xiangfu Liu3c945542011-10-12 12:24:06 +080050
Marek Vasut55675142012-10-12 10:27:03 +000051 . = ALIGN(4);
52 .u_boot_list : {
53 #include <u-boot.lst>
54 }
55
Xiangfu Liu3c945542011-10-12 12:24:06 +080056 uboot_end_data = .;
57 num_got_entries = (__got_end - __got_start) >> 2;
58
59 . = ALIGN(4);
60 .sbss : { *(.sbss*) }
61 .bss : { *(.bss*) . = ALIGN(4); }
62 uboot_end = .;
63}