LIEF: Library to Instrument Executable Formats Version 0.16.0
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 {
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
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
ARM64_RELOCATION
Definition MachO/enums.hpp:93
@ ARM64_RELOC_POINTER_TO_GOT
Definition MachO/enums.hpp:101
@ ARM64_RELOC_TLVP_LOAD_PAGEOFF12
Definition MachO/enums.hpp:103
@ ARM64_RELOC_GOT_LOAD_PAGE21
Definition MachO/enums.hpp:99
@ ARM64_RELOC_PAGEOFF12
Definition MachO/enums.hpp:98
@ ARM64_RELOC_GOT_LOAD_PAGEOFF12
Definition MachO/enums.hpp:100
@ ARM64_RELOC_UNSIGNED
Definition MachO/enums.hpp:94
@ ARM64_RELOC_TLVP_LOAD_PAGE21
Definition MachO/enums.hpp:102
@ ARM64_RELOC_ADDEND
Definition MachO/enums.hpp:104
@ ARM64_RELOC_PAGE21
Definition MachO/enums.hpp:97
@ ARM64_RELOC_SUBTRACTOR
Definition MachO/enums.hpp:95
@ ARM64_RELOC_BRANCH26
Definition MachO/enums.hpp:96
ARM_RELOCATION
Definition MachO/enums.hpp:79
@ ARM_RELOC_VANILLA
Definition MachO/enums.hpp:80
@ ARM_RELOC_SECTDIFF
Definition MachO/enums.hpp:82
@ ARM_RELOC_BR24
Definition MachO/enums.hpp:85
@ ARM_THUMB_RELOC_BR22
Definition MachO/enums.hpp:86
@ ARM_RELOC_PB_LA_PTR
Definition MachO/enums.hpp:84
@ ARM_THUMB_32BIT_BRANCH
Definition MachO/enums.hpp:87
@ ARM_RELOC_PAIR
Definition MachO/enums.hpp:81
@ ARM_RELOC_HALF
Definition MachO/enums.hpp:88
@ ARM_RELOC_HALF_SECTDIFF
Definition MachO/enums.hpp:89
@ ARM_RELOC_LOCAL_SECTDIFF
Definition MachO/enums.hpp:83
X86_64_RELOCATION
Definition MachO/enums.hpp:45
@ X86_64_RELOC_SUBTRACTOR
Definition MachO/enums.hpp:51
@ X86_64_RELOC_BRANCH
Definition MachO/enums.hpp:48
@ X86_64_RELOC_SIGNED_2
Definition MachO/enums.hpp:53
@ X86_64_RELOC_GOT
Definition MachO/enums.hpp:50
@ X86_64_RELOC_GOT_LOAD
Definition MachO/enums.hpp:49
@ X86_64_RELOC_SIGNED
Definition MachO/enums.hpp:47
@ X86_64_RELOC_SIGNED_4
Definition MachO/enums.hpp:54
@ X86_64_RELOC_TLV
Definition MachO/enums.hpp:55
@ X86_64_RELOC_SIGNED_1
Definition MachO/enums.hpp:52
@ X86_64_RELOC_UNSIGNED
Definition MachO/enums.hpp:46
X86_RELOCATION
Definition MachO/enums.hpp:36
@ GENERIC_RELOC_SECTDIFF
Definition MachO/enums.hpp:39
@ GENERIC_RELOC_LOCAL_SECTDIFF
Definition MachO/enums.hpp:41
@ GENERIC_RELOC_PAIR
Definition MachO/enums.hpp:38
@ GENERIC_RELOC_PB_LA_PTR
Definition MachO/enums.hpp:40
@ GENERIC_RELOC_VANILLA
Definition MachO/enums.hpp:37
@ GENERIC_RELOC_TLV
Definition MachO/enums.hpp:42
MACHO_TYPES
Definition MachO/enums.hpp:24
@ MH_CIGAM_64
64-bit little-endian magic
Definition MachO/enums.hpp:29
@ NEURAL_MODEL
Definition MachO/enums.hpp:33
@ FAT_MAGIC
big-endian fat magic
Definition MachO/enums.hpp:30
@ FAT_CIGAM
little-endian fat magic
Definition MachO/enums.hpp:31
@ UNKNOWN
Definition MachO/enums.hpp:25
@ MH_MAGIC
32-bit big-endian magic
Definition MachO/enums.hpp:26
@ MH_CIGAM
32-bit little-endian magic
Definition MachO/enums.hpp:27
@ MH_MAGIC_64
64-bit big-endian magic
Definition MachO/enums.hpp:28
PPC_RELOCATION
Definition MachO/enums.hpp:59
@ PPC_RELOC_VANILLA
Definition MachO/enums.hpp:60
@ PPC_RELOC_LOCAL_SECTDIFF
Definition MachO/enums.hpp:75
@ PPC_RELOC_PAIR
Definition MachO/enums.hpp:61
@ PPC_RELOC_HI16_SECTDIFF
Definition MachO/enums.hpp:70
@ PPC_RELOC_HI16
Definition MachO/enums.hpp:64
@ PPC_RELOC_BR24
Definition MachO/enums.hpp:63
@ PPC_RELOC_BR14
Definition MachO/enums.hpp:62
@ PPC_RELOC_JBSR
Definition MachO/enums.hpp:73
@ PPC_RELOC_LO14
Definition MachO/enums.hpp:67
@ PPC_RELOC_LO16
Definition MachO/enums.hpp:65
@ PPC_RELOC_SECTDIFF
Definition MachO/enums.hpp:68
@ PPC_RELOC_LO16_SECTDIFF
Definition MachO/enums.hpp:71
@ PPC_RELOC_HA16
Definition MachO/enums.hpp:66
@ PPC_RELOC_HA16_SECTDIFF
Definition MachO/enums.hpp:72
@ PPC_RELOC_PB_LA_PTR
Definition MachO/enums.hpp:69
@ PPC_RELOC_LO14_SECTDIFF
Definition MachO/enums.hpp:74
LIEF namespace.
Definition Abstract/Binary.hpp:36