summaryrefslogtreecommitdiffstats
path: root/flash/bootloader/bootloader.lds
blob: ecc12689889a11ef48a859631978de2b311688b1 (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
31
32
33
34
OUTPUT_FORMAT(elf32-sh)

MEMORY
{
	/* the boot ROM uses IRAM at 400-430, stay away and start at 500 */
	IRAM : ORIGIN = 0x0FFFF500, LENGTH = 0xA00
	/* and leave some room for stack at the end */
}

SECTIONS
{
	.startvector :
	{
		*(.startvector)
		. = ALIGN(0x4);
	} > IRAM

	.text :
	{	 
		*(.text)	
		*(.icode)
		. = ALIGN(0x4);
	} > IRAM
	
	.data :
	{
		*(.data)
	} > IRAM

	.bss :
	{
	   *(.bss)
	} > IRAM
}