blob: 865effd7e7bbbcc8bae04991428cb081e8976f96 [file] [log] [blame]
Zhi-zhou Zhang32afad72012-10-16 15:02:08 +02001/*
2 * (C) Copyright 2003
3 * Wolfgang Denk Engineering, <wd@denx.de>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Zhi-zhou Zhang32afad72012-10-16 15:02:08 +02006 */
7
8/*
9OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
10*/
11OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips")
12OUTPUT_ARCH(mips)
13SECTIONS
14{
15 .text :
16 {
17 *(.text*)
18 }
19
20 . = ALIGN(4);
21 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
22
23 . = ALIGN(4);
24 .data : { *(.data*) }
25
26 . = .;
27 _gp = ALIGN(16) + 0x7ff0;
28
29 .got : {
30 __got_start = .;
31 *(.got)
32 __got_end = .;
33 }
34
35 .sdata : { *(.sdata*) }
36
37 . = ALIGN(4);
38 __bss_start = .;
39 .sbss (NOLOAD) : { *(.sbss*) }
40 .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); }
41
42 _end = .;
43}