-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
link.ld
56 lines (49 loc) · 813 Bytes
/
link.ld
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
OUTPUT_FORMAT("elf32-bigarm")
OUTPUT_ARCH(arm)
ENTRY(_start)
/* Sections area */
MEMORY {
table : ORIGIN = 0x0, LENGTH = 0x4000
exe(rx) : ORIGIN = 0x13970000, LENGTH = 0x9000
data(rw) : ORIGIN = 0x13979000, LENGTH = 0xE000
}
SECTIONS {
.ios_info_table : {
KEEP (*(.ios_info_table))
} > table
.init : {
*(.init)
. = ALIGN(4);
} > exe
.text : {
*(.text*)
*(.gnu.warning)
*(.gnu.linkonce.t.*)
*(.init)
*(.glue_7)
*(.glue_7t)
. = ALIGN(4);
} > exe
.rodata : {
*(.rodata)
*all.rodata*(*)
*(.roda)
*(.rodata.*)
*(.gnu.linkonce.r.*)
. = ALIGN(4);
} > exe
.data : {
*(.data*)
*(.data.*)
*(.gnu.linkonce.d.*)
. = ALIGN(4);
} > data
.bss (NOLOAD) : {
*(.dynsbss)
*(.gnu.linkonce.sb.*)
*(.bss*)
*(COMMON)
KEEP(*(.ios_bss))
. = ALIGN(4);
} > data
}