-
Notifications
You must be signed in to change notification settings - Fork 1
/
linker.ld
52 lines (45 loc) · 1.05 KB
/
linker.ld
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
OUTPUT_ARCH(arm)
MEMORY {
rom : ORIGIN = 0x08000000, LENGTH = 32M
}
SECTIONS {
.text :
ALIGN(4)
{
FILL (0xABCD)
__text_start = . ;
*(.init)
*(.text)
*(.text.*)
*(.ctors)
*(.dtors)
*(.data)
*(.fini)
*(COMMON)
__text_end = . ;
}
lib_text :
ALIGN(4)
{
__text_siirtc_start = . ;
build/src/siirtc.o(.text);
__text_siirtc_end = . ;
}
.rodata :
SUBALIGN(4)
{
__rodata_start = . ;
*(.rodata)
}
lib_rodata :
SUBALIGN(4)
{
build/src/siirtc.o(.rodata);
__rodata_end = . ;
__bss_start__ = . ;
*(.bss .bss.*)
__bss_end__ = . ;
_end = __bss_end__ ;
__end__ = __bss_end__ ;
} >rom = 0xff
}