-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.ld
More file actions
47 lines (37 loc) · 1001 Bytes
/
Copy pathuser.ld
File metadata and controls
47 lines (37 loc) · 1001 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
ENTRY(_start)
SECTIONS
{
/* Standard base load address for isolated Ring 3 User execution blocks */
. = 0x2000000;
/* 1. Executable Code Segment */
.text : {
*(.text._start) /* Guarantee entry execution initialization */
*(.text)
*(.text.*)
}
/* Force Read-Only data onto a clean 4KB page boundary */
. = ALIGN(4096);
/* 2. Read-Only Data Segment */
.rodata : {
*(.rodata)
*(.rodata.*)
}
/* Force Writable data onto a clean 4KB page boundary */
. = ALIGN(4096);
/* 3. Writable Data Segment */
.data : {
*(.data)
*(.data.*)
}
/* 4. Uninitialized Data Segment */
.bss : {
*(.bss)
*(.bss.*)
*(COMMON)
}
/* Align to a standard 4KB CPU memory page boundary */
. = ALIGN(4096);
_heap_start = .;
}
/* Move this definition OUTSIDE of the SECTIONS block so it remains a pure reference pointer */
_heap_end = _heap_start + 0x2000000;