forked from OpenOrbis/OpenOrbis-PS4-Toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink.x
57 lines (46 loc) · 865 Bytes
/
link.x
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
SECTIONS
{
/* Combine text, rodata, and eh_frame stuff */
.text : ALIGN(0x4000) {
. += 0x20;
*(.text)
}
.rodata : ALIGN(0x10) {
*(.rodata)
}
.eh_frame : {
*(.eh_frame)
}
.eh_frame_hdr : {
*(.eh_frame_hdr)
}
.data.rel.ro : ALIGN(0x4000) {
*(.data.rel.ro)
}
# Align .got to 0x4000 if .data.rel.ro doesn't exist
. = (SIZEOF(.data.rel.ro) > 0 ? . : ALIGN(.,0x4000));
.got : {
*(.got)
}
# Align .got.plt to 0x4000 if .got doesn't exist
. = (SIZEOF(.got) > 0 ? . : ALIGN(.,0x4000));
.got.plt : {
*(.got.plt)
}
.data.sce_process_param : ALIGN(0x4000) {
*(.data.sce_process_param)
}
.data.sce_module_param : ALIGN(0x4000) {
*(.data.sce_module_param)
}
.data : {
*(.data)
}
.bss : {
*(.bss)
}
# Force .got.plt to appear, because SPRX requires a valid .got.plt.
/DISCARD/ : {
QUAD(_GLOBAL_OFFSET_TABLE_)
}
}