summaryrefslogtreecommitdiffstats
path: root/script.ld
blob: a063ffe82c8ef6c57ea03a50cca1e8dc9a42a6f4 (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
30
MEMORY
{
	rom (rx)  : ORIGIN = 0x00080000, LENGTH = 512K
	ram (rwx) : ORIGIN = 0x20000000, LENGTH = 96K
}

sp = ORIGIN(ram) + LENGTH(ram);

SECTIONS
{
	.text :
	{
		KEEP(*(.vtor))
		*(.text*)
		*(.rodata*)
	} > rom

	.data :
	{
		*(.data*)
	} > ram AT >rom

	.bss (NOLOAD) :
	{
		__bss_start__ = . ;
		*(.bss*)
		*(COMMON)
		__bss_end__ = . ;
	} > ram
}