forked from AppImage/type2-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_sections.ld
78 lines (62 loc) · 1.63 KB
/
data_sections.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
SECTIONS
{
/* AppImage magic bytes 0x414902 aligned at proposed future location 0x400; */
.appimage : ALIGN(0x400) {
BYTE(0x41);
BYTE(0x49);
BYTE(0x02);
}
/* undocumented marker for tools like AppImageLauncher to allow them to recognize static runtimes that support TARGET_APPIMGE */
/* will be replaced with a proper solution in type 3 */
.static : ALIGN(0x404) {
BYTE(0x73);
BYTE(0x74);
BYTE(0x61);
BYTE(0x74);
BYTE(0x69);
BYTE(0x63);
}
}
/* define were the new sections will be placed */
INSERT AFTER .interp;
SECTIONS
{
/* 16 bytes long section filled with zeroes */
.digest_md5 : {
/* gaps will be filled with 0 */
FILL(0x00);
/* make a 15 bytes gap */
. = . + 15;
/* write the last byte to ensure the space is allocated */
BYTE(0x00);
}
/* 1024 bytes long section filled with zeroes */
.upd_info : {
/* gaps will be filled with 0 */
FILL(0x00);
/* make a 1023 bytes gap */
. = . + 1023;
/* write the last byte to ensure the space is allocated */
BYTE(0x00);
}
/* 1024 bytes long section filled with zeroes */
.sha256_sig : {
/* gaps will be filled with 0 */
FILL(0x00);
/* make a 1023 bytes gap */
. = . + 1023;
/* write the last byte to ensure the space is allocated */
BYTE(0x00);
}
/* 8192 bytes long section filled with zeroes */
.sig_key : {
/* gaps will be filled with 0 */
FILL(0x00);
/* make a 8191 bytes gap */
. = . + 8191;
/* write the last byte to ensure the space is allocated */
BYTE(0x00);
}
}
/* define were the new sections will be placed */
INSERT AFTER .data;