summaryrefslogtreecommitdiffhomepage
path: root/src/loader/link.ld
blob: fe00d82e19101fca9fb9c52c60c54dada4aa8de4 (plain) (blame)
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
/* MIT License, Copyright (c) 2021 Marvin Borner */

OUTPUT_FORMAT("elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
phys = 0x7e00;

SECTIONS
{
	. = phys;

	.entry :
	{
		*(.entry*)
	}

	.realmode : {
		*(.realmode*)
	}

	.text :
	{
		*(.text*)
	}

	.rodata :
	{
		*(.rodata*)
	}

	.data :
	{
		*(.data*)
	}

	.bss :
	{
		bss_begin = .;
		*(COMMON)
		*(.bss)
		bss_end = .;
	}

	end = .;
}