aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/linker.ld
blob: b7bde1d4db8579c1b2dc52a32e6195294ffeb530 (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
ENTRY(boot)

phys = 0x100000;
offset = 0xC0000000;
virt = offset + phys;

SECTIONS
{
	. = virt;

	.text : AT (ADDR (.text) - offset)
	{
		*(.text)
		*(.rodata)
		. = ALIGN(0x1000);
	}

	.data : AT (ADDR (.data) - offset)
	{
		*(.data)
		. = ALIGN(0x1000);
	}

	.bss : AT (ADDR (.bss) - offset)
	{
		*(.COMMON)
		*(.bss)
		. = ALIGN(0x1000);
	}

	KERNEL_END = .;
}