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

SECTIONS {
	. = 1M;

	.text BLOCK(4K) : ALIGN(4K) {
		*(.start_section)
		*(.text)
	}

	.rodata BLOCK(4K) : ALIGN(4K) {
		*(.rodata)
	}

	.data BLOCK(4K) : ALIGN(4K) {
		*(.data)
	}

	.bss BLOCK(4K) : ALIGN(4K) {
		*(COMMON)
		*(.bss)
	}

	.end_section BLOCK(4K) : ALIGN(4K) {
		*(.end_section)
	}
}