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

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

SECTIONS
{
	. = phys;

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

	.rodata :
	{
		*(.rodata*)
	}

	.data :
	{
		*(.data*)
	}

	.bss :
	{
		*(COMMON)
		*(.bss)
	}

	end = .;
}