LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
MachO/enums.hpp
Go to the documentation of this file.
1/* Copyright 2021 - 2024 R. Thomas
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15#ifndef LIEF_MACHO_ENUMS_H
16#define LIEF_MACHO_ENUMS_H
17
18#include "LIEF/MachO/undef.h"
19#include <cstdint>
20
21namespace LIEF {
22namespace MachO {
23
24enum class MACHO_TYPES: uint32_t {
25 UNKNOWN = 0,
26 MH_MAGIC = 0xFEEDFACEu,
27 MH_CIGAM = 0xCEFAEDFEu,
28 MH_MAGIC_64 = 0xFEEDFACFu,
29 MH_CIGAM_64 = 0xCFFAEDFEu,
30 FAT_MAGIC = 0xCAFEBABEu,
31 FAT_CIGAM = 0xBEBAFECAu,
32
33 NEURAL_MODEL = 0xbeeffaceu,
34};
35
44
57
58
77
78
91
92
106
107}
108}
109#endif
ARM64_RELOCATION
Definition MachO/enums.hpp:93
ARM_RELOCATION
Definition MachO/enums.hpp:79
X86_64_RELOCATION
Definition MachO/enums.hpp:45
X86_RELOCATION
Definition MachO/enums.hpp:36
MACHO_TYPES
Definition MachO/enums.hpp:24
@ MH_CIGAM_64
64-bit little-endian magic
@ FAT_MAGIC
big-endian fat magic
@ FAT_CIGAM
little-endian fat magic
@ MH_MAGIC
32-bit big-endian magic
@ MH_CIGAM
32-bit little-endian magic
@ MH_MAGIC_64
64-bit big-endian magic
PPC_RELOCATION
Definition MachO/enums.hpp:59
LIEF namespace.
Definition Abstract/Binary.hpp:32