aboutsummaryrefslogtreecommitdiff
path: root/arch/alpha/boot/compressed/vmlinux.lds.S
blob: 5328c1ccaccf8b683f8afb9d59f9e3e91e4f2b03 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* SPDX-License-Identifier: GPL-2.0 */
#include <asm-generic/vmlinux.lds.h>
#include <asm/page.h>
#include <asm/setup.h>

OUTPUT_FORMAT("elf64-alpha")
OUTPUT_ARCH(alpha)
ENTRY(__start)

SECTIONS
{
	/*
	 * Link the stub at the address the real, uncompressed vmlinux has
	 * always occupied. aboot derives the OSF/1 parameter-page
	 * (ZERO_PGE) and initial stack (INIT_STACK) addresses from the
	 * loaded image's own p_vaddr, so a stub linked anywhere else would
	 * hand the real kernel a parameter page it does not expect.
	 */
	. = START_ADDR;

	.head.text : {
		_head = .;
		HEAD_TEXT
		_ehead = .;
	}

	. = ALIGN(8);
	.rodata.compressed : {
		*(.rodata.compressed)
	}

	. = ALIGN(PAGE_SIZE);
	.text : {
		_text = .;
		*(.text)
		*(.text.*)
		_etext = .;
	}
	. = ALIGN(8);
	.rodata : {
		*(.rodata)
		*(.rodata.*)
	}
	. = ALIGN(8);
	.data : {
		*(.data)
		*(.data.*)
	}
	.got : {
		*(.got)
	}
	.sdata : {
		*(.sdata)
	}
	/*
	 * misc.c decompresses to _ebss, so nothing that the stub still
	 * needs may be placed after .bss. --orphan-handling=warn keeps a
	 * new section from silently landing there.
	 */
	. = ALIGN(8);
	.bss : {
		_bss = .;
		*(.sbss)
		*(.scommon)
		*(.bss)
		*(.bss.*)
		*(COMMON)
		. = ALIGN(8);
		_ebss = .;
	}

	STABS_DEBUG
	DWARF_DEBUG
	ELF_DETAILS

	DISCARDS
	/DISCARD/ : {
		*(.eh_frame)
		*(.modinfo)
		*(.note)
		*(.note.*)
	}
}