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