summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/conf/ld.script
blob: 57244299d59aa1a157ffa0d9e92f8a2ff5b6df01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* 	$OpenBSD: ld.script,v 1.6 1999/08/14 04:56:28 todd Exp $	*/

OUTPUT_FORMAT("elf32-hppa")
OUTPUT_ARCH(hppa)
ENTRY($start)
SECTIONS
{
	/* Read-only sections, merged into text segment: */
	. = + SIZEOF_HEADERS;
	.text :
	{
		kernel_text = . ;
		*(.text)
		*(.rodata) *(.rodata1)
		*(.reginfo)
		*(.init)
		*(.stub)
		/* .gnu.warning sections are handled specially by elf32.em.  */
		*(.gnu.warning)
		__unwind_start = .;
		*(.PARISC.unwind)
		__unwind_end = .;
		. = ALIGN(4096);
	} = 0 /* 0x08000240 nop filled, does not work */
	etext = ABSOLUTE(.);

	.data  :
	{
		$global$ = . ;
		kernel_data = . ;
		[a-ps-z]*(.data) r[a-ce-z]*(.data) *libkern.o(.data)
		rd_root.o(.data)	/* there is an overflow bug in ld */
		CONSTRUCTORS
		. = ALIGN(4096);
	} = 0
	.ctors	: { *(.ctors) }
	.dtors	: { *(.dtors) }
	edata = ABSOLUTE(.);

	__bss_start = .;
	.sbss	: { *(.sbss) *(.scommon) }
	.bss :
	{
		*(.dynbss) *(.bss)
		*(COMMON) *($COMMON$)
		. = ALIGN(4096);
	}
	end = ABSOLUTE(.);
}