summaryrefslogtreecommitdiff
path: root/flash/minimon/minimon.lds
blob: dbdbdc3faa5b06163037206e9a7cd91fa434a8e5 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
OUTPUT_FORMAT(elf32-sh)
INPUT(minimon.o)

MEMORY
{
	DRAM : ORIGIN = 0x09000000, LENGTH = 0x200000
}

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

	.got :
	{
	   *(.got)
	} > DRAM

	.got.plt :
	{
	   *(.got.plt)
	} > DRAM

	.rela.got :
	{
	   *(.rela.got)
	} > DRAM

	.text :    
	{	 
		. = ALIGN(0x200);
		*(.entry)
		*(.text)	
		. = ALIGN(0x4);
	} > DRAM
	
	.data :
	{
		*(.data)
	} > DRAM

	.rodata :
	{
		*(.rodata)
		. = ALIGN(0x4);
	} > DRAM

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

	.stack :
	{
	   *(.stack)
	} > DRAM
}