-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.ld
44 lines (37 loc) · 781 Bytes
/
link.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
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(vectors)
MEMORY {
RAM (RWX) : ORIGIN = 0x24C00000, LENGTH = 4M
}
SECTIONS {
.text : ALIGN(4) {
__text_s = .;
*(.text.vectors)
*(.text)
*(.text*)
__text_e = .;
} >RAM
.data : ALIGN(4) {
__data_s = .;
*(.data)
*(.data*)
__data_e = .;
} >RAM
.rodata : ALIGN(4) {
__rodata_s = .;
*(.rodata)
*(.rodata*)
__rodata_e = .;
} >RAM
.bss (NOLOAD) : ALIGN(4) {
__bss_s = .;
*(.bss)
*(.bss*)
__bss_e = .;
} >RAM
. = ALIGN(4096);
__end__ = .;
__heap_start = .;
__heap_end = ORIGIN(RAM) + LENGTH(RAM);
}