forked from waninkoko/es-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlink.ld
More file actions
133 lines (117 loc) · 2.27 KB
/
link.ld
File metadata and controls
133 lines (117 loc) · 2.27 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
OUTPUT_FORMAT("elf32-bigarm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
/* Sections area */
MEMORY {
ios_info_table : ORIGIN = 0x0, LENGTH = 0x4000
exe(rwx) : ORIGIN = 0x13818000, LENGTH = 0x1000
ram(rwx) : ORIGIN = 0x13819000, LENGTH = 0x4000
}
__exe_start_virt__ = 0x13818000;
__exe_start_phys__ = 0x13818000;
__ram_start_virt__ = 0x13819000;
__ram_start_phys__ = 0x13819000;
__ios_info_table_start = 0x0;
SECTIONS {
.debug_aranges 0 : {
*(.debug_aranges)
}
.debug_pubnames 0 : {
*(.debug_pubnames)
}
.debug_info 0 : {
*(.debug_info)
}
.debug_abbrev 0 : {
*(.debug_abbrev)
}
.debug_line 0 : {
*(.debug_line)
}
.debug_frame 0 : {
*(.debug_frame)
}
.debug_str 0 : {
*(.debug_str)
}
.debug_loc 0 : {
*(.debug_loc)
}
.debug_macinfo 0 : {
*(.debug_macinfo)
}
.note.arm.ident 0 : {
KEEP (*(.note.arm.ident))
}
.ios_info_table __ios_info_table_start : {
. = .;
KEEP (*(.ios_info_table))
} > ios_info_table
.init __exe_start_virt__ : AT (__exe_start_phys__) {
. = .;
KEEP (*(.init))
} > exe
.text ALIGN (0x4) : {
*(.text*)
*(.gnu.warning)
*(.gnu.linkonce.t.*)
*(.init)
*(.glue_7)
*(.glue_7t)
} > exe
.data __ram_start_virt__ : AT (__ram_start_phys__) {
KEEP (*(.ios_data))
*(.data*)
*(.data1)
*(.gnu.linkonce.d.*)
. = ALIGN (4);
__CTOR_LIST__ = ABSOLUTE (.);
KEEP (*(SORT (.ctors*)))
__CTOR_END__ = ABSOLUTE (.);
__DTOR_LIST__ = ABSOLUTE (.);
KEEP (*(SORT (.dtors*)))
__DTOR_END__ = ABSOLUTE (.);
*(.dynamic)
*(.sdata*)
*(.gnu.linkonce.s.*)
. = ALIGN (4);
*(.2ram.*)
} > ram
.fini : {
. = .;
*(.fini)
} > ram
.rodata ALIGN (0x4) : {
. = .;
*(.rodata*)
*(.gnu.linkonce.r.*)
} > ram
.rodata1 ALIGN (0x4) : {
. = .;
*(.rodata1)
} > ram
.fixup ALIGN (0x4) : {
. = .;
*(.fixup)
} > ram
.gcc_except_table ALIGN (0x4) : {
. = .;
*(.gcc_except_table)
} > ram
.got ALIGN (0x4) : {
*(.got.plt)
*(.got)
} > ram
.bss ALIGN (0x4) : {
*(.scommon)
*(.dynsbss)
*(.sbss*)
*(.gnu.linkonce.sb.*)
*(.dynbss)
*(.bss*)
*(.gnu.linkonce.b.*)
*(COMMON)
KEEP (*(.ios_bss))
} > ram
. = ALIGN(4);
}