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
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
use ;
/*
http://www.skyfree.org/linux/references/ELF_Format.pdf#page=21
Section names with a dot (.) prefix are reserved for the system....
Applications may use names without the prefix to avoid
conflicts with system sections.
*/
pub
/*
https://developer.apple.com/library/archive/documentation/Performance/Conceptual/CodeFootprint/Articles/MachOOverview.html
The convention for segment names is to use all-uppercase letters preceded by double underscores (for example, __TEXT);
the convention for section names is to use all-lowercase letters preceded by double underscores (for example, __text).
*/
pub
pub
/*
https://github.com/nodejs/postject/blob/3c4f2080ee56025716c3add0f6c03b16e2af54ff/src/api.js#L94
PE resource names appear to only work if uppercase
*/
pub
pub const SENTINEL_SUFFIX: &str = "EDITRES_5C129DBE873743999080563ED17CEA33";