xref: /openbsd/sys/arch/hppa/stand/boot/ld.script (revision 7b36286a)
1/*	$OpenBSD: ld.script,v 1.3 2002/02/02 21:28:07 mickey Exp $	*/
2
3OUTPUT_FORMAT("elf32-hppa")
4OUTPUT_ARCH(hppa)
5ENTRY(begin)
6
7SECTIONS {
8
9	/* Read-only sections, merged into text segment: */
10	. = + SIZEOF_HEADERS;
11	.text : {
12		*(.text)
13		*(.text.*)
14		*(.rodata)
15		*(.rodata1)
16		*($CODE$)
17		etext = .;
18	} = 0x08000240
19
20	/* Read-write sections, merged into data segment: */
21	.data : {
22		$global$ = .;
23		*(.data)
24		*(.data1)
25		*(.sdata)
26		*(.sdata2)
27		*(.dynamic)
28		CONSTRUCTORS
29		edata = ABSOLUTE(.);
30	} = 0
31
32	.bss : {
33		__bss_start = .;
34		*(.dynbss)
35		*(.bss)
36		*(.sbss)
37		*(.scommon)
38		*(COMMON)
39		end = ABSOLUTE(.);
40		__bss_end = .;
41	}
42
43	/* don't need an unwind in the boot, unless we'll have a boot-ddb (; */
44	/DISCARD/ :
45	{
46		*(.PARISC.unwind)
47	}
48}
49
50