LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
MachO/enums.hpp
Go to the documentation of this file.
1/* Copyright 2021 - 2026 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 <cstdint>
19
20namespace LIEF {
21namespace MachO {
22
23enum class MACHO_TYPES : uint32_t {
25 MAGIC = 0xFEEDFACEu,
26 CIGAM = 0xCEFAEDFEu,
27 MAGIC_64 = 0xFEEDFACFu,
28 CIGAM_64 = 0xCFFAEDFEu,
29 MAGIC_FAT = 0xCAFEBABEu,
30 CIGAM_FAT = 0xBEBAFECAu,
31
32 NEURAL_MODEL = 0xbeeffaceu,
33};
34
60
76
77
96
97
110
111
131
132}
133}
134#endif
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
ARM64_RELOCATION
Definition MachO/enums.hpp:112
@ ARM64_RELOC_POINTER_TO_GOT
Definition MachO/enums.hpp:123
@ ARM64_RELOC_TLVP_LOAD_PAGEOFF12
Definition MachO/enums.hpp:125
@ ARM64_RELOC_GOT_LOAD_PAGE21
Definition MachO/enums.hpp:120
@ ARM64_RELOC_PAGEOFF12
Definition MachO/enums.hpp:118
@ ARM64_RELOC_GOT_LOAD_PAGEOFF12
Definition MachO/enums.hpp:121
@ ARM64_RELOC_UNSIGNED
Definition MachO/enums.hpp:113
@ ARM64_RELOC_TLVP_LOAD_PAGE21
Definition MachO/enums.hpp:124
@ ARM64_RELOC_ADDEND
Definition MachO/enums.hpp:127
@ ARM64_RELOC_PAGE21
Definition MachO/enums.hpp:117
@ ARM64_RELOC_SUBTRACTOR
Definition MachO/enums.hpp:114
@ ARM64_RELOC_BRANCH26
Definition MachO/enums.hpp:116
ARM_RELOCATION
Definition MachO/enums.hpp:98
@ ARM_RELOC_VANILLA
Definition MachO/enums.hpp:99
@ ARM_RELOC_SECTDIFF
Definition MachO/enums.hpp:101
@ ARM_RELOC_BR24
Definition MachO/enums.hpp:104
@ ARM_THUMB_RELOC_BR22
Definition MachO/enums.hpp:105
@ ARM_RELOC_PB_LA_PTR
Definition MachO/enums.hpp:103
@ ARM_THUMB_32BIT_BRANCH
Definition MachO/enums.hpp:106
@ ARM_RELOC_PAIR
Definition MachO/enums.hpp:100
@ ARM_RELOC_HALF
Definition MachO/enums.hpp:107
@ ARM_RELOC_HALF_SECTDIFF
Definition MachO/enums.hpp:108
@ ARM_RELOC_LOCAL_SECTDIFF
Definition MachO/enums.hpp:102
X86_64_RELOCATION
Definition MachO/enums.hpp:61
@ X86_64_RELOC_SUBTRACTOR
Definition MachO/enums.hpp:68
@ X86_64_RELOC_BRANCH
Definition MachO/enums.hpp:65
@ X86_64_RELOC_SIGNED_2
Definition MachO/enums.hpp:72
@ X86_64_RELOC_GOT
Definition MachO/enums.hpp:67
@ X86_64_RELOC_GOT_LOAD
Definition MachO/enums.hpp:66
@ X86_64_RELOC_SIGNED
Definition MachO/enums.hpp:64
@ X86_64_RELOC_SIGNED_4
Definition MachO/enums.hpp:73
@ X86_64_RELOC_TLV
Definition MachO/enums.hpp:74
@ X86_64_RELOC_SIGNED_1
Definition MachO/enums.hpp:71
@ X86_64_RELOC_UNSIGNED
Definition MachO/enums.hpp:62
X86_RELOCATION
Definition MachO/enums.hpp:35
@ GENERIC_RELOC_SECTDIFF
Definition MachO/enums.hpp:40
@ GENERIC_RELOC_LOCAL_SECTDIFF
Definition MachO/enums.hpp:48
@ GENERIC_RELOC_PAIR
Definition MachO/enums.hpp:39
@ GENERIC_RELOC_PB_LA_PTR
Definition MachO/enums.hpp:44
@ GENERIC_RELOC_VANILLA
Definition MachO/enums.hpp:36
@ GENERIC_RELOC_TLV
Definition MachO/enums.hpp:55
MACHO_TYPES
Definition MachO/enums.hpp:23
@ MAGIC_64
64-bit big-endian magic
Definition MachO/enums.hpp:27
@ NEURAL_MODEL
Definition MachO/enums.hpp:32
@ CIGAM_64
64-bit little-endian magic
Definition MachO/enums.hpp:28
@ MAGIC_FAT
big-endian fat magic
Definition MachO/enums.hpp:29
@ CIGAM_FAT
little-endian fat magic
Definition MachO/enums.hpp:30
@ UNKNOWN
Definition MachO/enums.hpp:24
@ MAGIC
32-bit big-endian magic
Definition MachO/enums.hpp:25
@ CIGAM
32-bit little-endian magic
Definition MachO/enums.hpp:26
PPC_RELOCATION
Definition MachO/enums.hpp:78
@ PPC_RELOC_VANILLA
Definition MachO/enums.hpp:79
@ PPC_RELOC_LOCAL_SECTDIFF
Definition MachO/enums.hpp:94
@ PPC_RELOC_PAIR
Definition MachO/enums.hpp:80
@ PPC_RELOC_HI16_SECTDIFF
Definition MachO/enums.hpp:89
@ PPC_RELOC_HI16
Definition MachO/enums.hpp:83
@ PPC_RELOC_BR24
Definition MachO/enums.hpp:82
@ PPC_RELOC_BR14
Definition MachO/enums.hpp:81
@ PPC_RELOC_JBSR
Definition MachO/enums.hpp:92
@ PPC_RELOC_LO14
Definition MachO/enums.hpp:86
@ PPC_RELOC_LO16
Definition MachO/enums.hpp:84
@ PPC_RELOC_SECTDIFF
Definition MachO/enums.hpp:87
@ PPC_RELOC_LO16_SECTDIFF
Definition MachO/enums.hpp:90
@ PPC_RELOC_HA16
Definition MachO/enums.hpp:85
@ PPC_RELOC_HA16_SECTDIFF
Definition MachO/enums.hpp:91
@ PPC_RELOC_PB_LA_PTR
Definition MachO/enums.hpp:88
@ PPC_RELOC_LO14_SECTDIFF
Definition MachO/enums.hpp:93
LIEF namespace.
Definition Abstract/Binary.hpp:40