-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinker.ld
More file actions
44 lines (36 loc) · 694 Bytes
/
Copy pathlinker.ld
File metadata and controls
44 lines (36 loc) · 694 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
ENTRY(boot)
SECTIONS
{
. = 0x00100000;
linker_kernelStart = .;
.text ALIGN (0x1000) :
{
*(.text)
*(.gnu.linkonce.t*)
}
.rodata ALIGN (0x1000) :
{
linker_constructorsStart = .;
*(.ctor*)
linker_constructorsEnd = .;
*(.rodata*)
*(.gnu.linkonce.r*)
}
.data ALIGN (0x1000) :
{
*(.data)
*(.gnu.linkonce.d*)
}
.bss :
{
*(COMMON)
*(.bss)
*(.gnu.linkonce.b*)
}
linker_kernelEnd = .;
/DISCARD/ :
{
*(.comment)
*(.eh_frame) /* discard this, unless you are implementing runtime support for C++ exceptions. */
}
}