-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinker.ld
More file actions
60 lines (52 loc) · 830 Bytes
/
Linker.ld
File metadata and controls
60 lines (52 loc) · 830 Bytes
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
/* Daniel's Idiot friendly bare metal ARM linker script */
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS {
/* Stores code and stuff */
. = ALIGN(4);
.text : {
_text_start = .;
*(.text)
_text_end = .;
}
. = ALIGN(4);
.rodata : {
_rodata_start = .;
*(.rodata*)
_rodata_end = .;
}
/* Block starting symbol, for unitialized global arrays */
. = ALIGN(4);
.bss : {
_bss_start = .;
*(.bss*)
_bss_end = .;
}
. = ALIGN(4);
.got : {
_got_start = .;
*(.got*)
_got_end = .;
}
/* Regular data */
. = ALIGN(4);
.data : {
_data_start = .;
*(.data*)
_data_end = .;
}
/* Regular data */
. = ALIGN(4);
.symtab : {
_data_start = .;
*(.symtab*)
_data_end = .;
}
/* Regular data */
. = ALIGN(4);
.strtab : {
*(.strtab*)
}
/* The data will be appended */
_symbol_table_start = .;
}