-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathraspberrypi.ld
More file actions
61 lines (51 loc) · 1.07 KB
/
raspberrypi.ld
File metadata and controls
61 lines (51 loc) · 1.07 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
50
51
52
53
54
55
56
57
58
59
60
MEMORY
{
RESERVED (r) : ORIGIN = 0x00000000, LENGTH = 32K
RAM (rwx) : ORIGIN = 0x00008000, LENGTH = 64M
}
ENTRY(_entry)
SECTIONS {
.start : {
KEEP(*(.init))
KEEP(*(.fini))
} > RAM = 0
/**
* This is the main code section.
*
**/
.text : {
*(.text)
} > RAM
.data : {
*(.data)
} > RAM
.bss :
{
__bss_start__ = .;
*(.bss)
*(.bss.*)
__bss_end__ = .;
} > RAM
.init.array :
{
__init_array_start = .;
*(.init_array)
*(.init_array.*)
__init_array_end = .;
} > RAM
/* .ARM.exidx is required for exception handling. It is required only
for "test_cpp" applications that link in stdlib */
.ARM.exidx :
{
__exidx_start = .;
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
__exidx_end = .;
} >RAM
/**
* Currently no heap
**/
/**
* Stack starts at the top of the RAM, and moves down!
**/
__stack = ORIGIN(RAM) + LENGTH(RAM);
}