xref: /kvm-unit-tests/s390x/snippets/asm/flat.lds.S (revision 5be877f208f17a07a2d8f1bd86f254705029d061)
1SECTIONS
2{
3	.lowcore : {
4		/*
5		 * Initial short psw for disk boot, with 31 bit addressing for
6		 * non z/Arch environment compatibility and the instruction
7		 * address 0x4000.
8		 */
9		. = 0;
10		 LONG(0x00080000)
11		 LONG(0x80004000)
12		 /* Restart new PSW for booting via PSW restart. */
13		 . = 0x1a0;
14		 QUAD(0x0000000180000000)
15		 QUAD(0x0000000000004000)
16		 /*
17		  * Invalid PGM new PSW so we hopefully get a code 8
18		  * intercept on a PGM
19		  */
20		 . = 0x1d0;
21		 QUAD(0x0008000000000000)
22		 QUAD(0x0000000000000001)
23	}
24	. = 0x4000;
25	/* Start text 0x4000 */
26	.text : {
27		*(.text)
28		*(.text.*)
29	}
30	. = ALIGN(16);
31	etext = .;
32	/* End text */
33	/* Start data */
34	.data : {
35		*(.data)
36		*(.data.rel*)
37	}
38	. = ALIGN(16);
39	.rodata : { *(.rodata) *(.rodata.*) }
40	/* End data */
41}
42