-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ld
More file actions
49 lines (41 loc) · 1.01 KB
/
Copy pathmain.ld
File metadata and controls
49 lines (41 loc) · 1.01 KB
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
ENTRY(_start)
SECTIONS
{
/* Section for program headers (PHDR) */
. = 0x400000;
/* Code section */
.text : {
*(.text) /* Main code section */
*(.text.*) /* Additional code sections */
*(.init) /* Initialization section */
*(.fini) /* Finalization section */
}
/* Read-only data section */
.rodata : {
*(.rodata) /* Read-only data */
*(.rodata.*)
}
INCLUDE dmod-common.ld
/* Initialized data section */
.data : {
*(.data)
*(.data.*)
}
/* Uninitialized data section */
.bss : {
*(.bss)
*(.bss.*)
*(COMMON)
}
/* Sections needed for C++ */
.init_array : {
PROVIDE_HIDDEN(__init_array_start = .);
KEEP(*(.init_array))
PROVIDE_HIDDEN(__init_array_end = .);
}
.fini_array : {
PROVIDE_HIDDEN(__fini_array_start = .);
KEEP(*(.fini_array))
PROVIDE_HIDDEN(__fini_array_end = .);
}
}