aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/x86_64/system/kernel.ld
blob: 49c12b04ae12124bcff489aecc826f062fdb7f35 (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
PHDRS {
	text PT_LOAD FLAGS(5);          /* R_E */
	note PT_NOTE FLAGS(0);          /* ___ */
}

SECTIONS {
	. = 0x100000;

	.text : {
		__load_st = .;
		*(.head)
		*(.text)
	} :text

	.rodata : {
		*(.rodata)
	} :text

        /* Keep build ID and PVH notes in same section */
        .notes :  {
               *(.note.*)
        } :note

        .data : {
		*(.data)
		__load_en = .;
	} :text

	.bss : {
		*(.bss)
		__bss_en = .;
	}
}