aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/linker.ld
blob: 69018c4e8de5cfc0eb7c57b3a91e8f5c8898a8c8 (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
ENTRY(main)
SECTIONS
{
	.text 0x40000000:
	{
		code = .; _code = .; __code = .;
		*(.text)
	}

	.data ALIGN(0x400000):
	{
		data = .; _data = .; __data = .;
		*(.data)
		*(.rodata)
	}

	.bss ALIGN(0x400000):
	{
		bss = .; _bss = .; __bss = .;
		*(.bss)
	}

	end = .; _end = .; __end = .;
}