xref: /kvm-unit-tests/s390x/flat.lds.S (revision bb4c17e3783ce4578065f8ea55b6227dc0f53ad8)
1#include <asm/asm-offsets.h>
2
3SECTIONS
4{
5	.lowcore : {
6		/*
7		 * Initial short psw for disk boot, with 31 bit addressing for
8		 * non z/Arch environment compatibility and the instruction
9		 * address 0x10000 (cstart64.S .init).
10		 */
11		. = 0;
12		lowcore = .;
13		 LONG(0x00080000)
14		 LONG(0x80010000)
15		 /* Restart new PSW for booting via PSW restart. */
16		 . = 0x1a0;
17		 QUAD(0x0000000180000000)
18		 QUAD(0x0000000000010000)
19	}
20	. = 0x10000;
21	.text : {
22		*(.init)
23		. = 0x480;
24		ipl_args = .;
25		.  = 0x1000;
26		*(.text)
27		*(.text.*)
28	}
29	. = ALIGN(4K);
30	etext = .;
31	.data : {
32		*(.data)
33		*(.data.rel*)
34	}
35	. = ALIGN(16);
36	.rodata : { *(.rodata) *(.rodata.*) }
37	. = ALIGN(16);
38	__bss_start = .;
39	.bss : { *(.bss) }
40	__bss_end = .;
41	. = ALIGN(4K);
42	edata = .;
43	/* Reserve 64K for the stack */
44	. += 64K;
45	. = ALIGN(4K);
46	/*
47	 * stackptr set with initial stack frame preallocated
48	 */
49	stackptr = . - STACK_FRAME_SIZE;
50	stacktop = .;
51}
52