summaryrefslogtreecommitdiff
path: root/src/kernel/linker.ld
blob: 274abc39ae19d8c6c1c219e90bb4a5e623bdc779 (plain)
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
ENTRY(_start)

SECTIONS
{
	. = 1M;
	.text BLOCK(4K) : ALIGN(4K)
	{
		*(.multiboot)
		*(.text)
	}
	.rodata BLOCK(4K) : ALIGN(4K)
	{
		*(.rodata)
	}
	.data BLOCK(4K) : ALIGN(4K)
	{
		*(.data)
	}
	_data_end = .;
	.bss BLOCK(4K) : ALIGN(4K)
	{
		*(COMMON)
		*(.bss)

		_stack_bottom = .;
		. += 16K;
	}
	_bss_end = (. + 0xFFF) & ~0xFFF; /* aligned to 4K */
}