xref: /OK3568_Linux_fs/u-boot/examples/standalone/mips64.lds (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1/*
2 * (C) Copyright 2003
3 * Wolfgang Denk Engineering, <wd@denx.de>
4 *
5 * SPDX-License-Identifier:	GPL-2.0+
6 */
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}
44