xref: /openbsd/sys/arch/octeon/conf/ld.script (revision 09467b48)
1/*	$OpenBSD: ld.script,v 1.5 2019/11/09 20:07:00 guenther Exp $	*/
2
3OUTPUT_FORMAT("elf64-tradbigmips")
4OUTPUT_ARCH(mips)
5ENTRY(__start)
6
7SECTIONS
8{
9	.text :		{ *(.text .text.* .gnu.linkonce.t.*) }
10	PROVIDE (etext = .);
11	.rodata :	{ *(.rodata .rodata.* .gnu.linkonce.r.*) }
12	_gp = ALIGN(16) + 0x7ff0;
13	.data :		{ *(.data .data.* .gnu.linkonce.d.*) }
14	__kernel_randomdata = .;
15	.openbsd.randomdata :
16	{
17		/* XXX shouldn't this be placed next to rodata? */
18		__retguard_start = ABSOLUTE(.);
19		*(.openbsd.randomdata.retguard .openbsd.randomdata.retguard.*)
20		/* XXX . = ALIGN(0x1000); */
21		__retguard_end = ABSOLUTE(.);
22		*(.openbsd.randomdata .openbsd.randomdata.*)
23	}
24	__kernel_randomdata_end = .;
25	PROVIDE (edata = .);
26	.sbss :		{ *(.sbss .sbss.* .gnu.linkonce.sb.* .scommon) }
27	.bss :		{ *(.bss .bss.* .gnu.linkonce.b.* COMMON) }
28	PROVIDE (_end = .);
29	PROVIDE (end = .);
30	/DISCARD/ :
31	{
32		*(.pdr)
33		*(.mdebug.abi64)
34		*(.MIPS.options)
35	}
36}
37