LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
DyldChainedFormat.hpp
Go to the documentation of this file.
1/* Copyright 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_DYLD_CHAINED_FMT_H
16#define LIEF_MACHO_DYLD_CHAINED_FMT_H
17#include "LIEF/visibility.h"
18namespace LIEF {
19namespace MachO {
20
21// values for dyld_chained_fixups_header.imports_format
23 IMPORT = 1, // Originally: DYLD_CHAINED_IMPORT
24 IMPORT_ADDEND = 2, // Originally: DYLD_CHAINED_IMPORT_ADDEND
25 IMPORT_ADDEND64 = 3, // Originally: DYLD_CHAINED_IMPORT_ADDEND64
26};
27
28// values for dyld_chained_starts_in_segment.pointer_format
30 NONE = 0,
31 PTR_ARM64E = 1, // stride 8, unauth target is vmaddr
32 PTR_64 = 2, // target is vmaddr
33 PTR_32 = 3,
36 PTR_64_OFFSET = 6, // target is vm offset
37 PTR_ARM64E_OFFSET = 7, // old name
38 PTR_ARM64E_KERNEL = 7, // stride 4, unauth target is vm offset
40 PTR_ARM64E_USERLAND = 9, // stride 8, unauth target is vm offset
41 PTR_ARM64E_FIRMWARE = 10, // stride 4, unauth target is vmaddr
42 PTR_X86_64_KERNEL_CACHE = 11, // stride 1, x86_64 kernel caches
43 PTR_ARM64E_USERLAND24 = 12, // stride 8, unauth target is vm offset, 24-bit bind
44 PTR_ARM64E_SHARED_CACHE = 13, // stride 8, regular/auth targets both vm offsets. Only A keys supported
45};
46
49
50}
51}
52#endif
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
DYLD_CHAINED_FORMAT
Definition DyldChainedFormat.hpp:22
@ IMPORT_ADDEND64
Definition DyldChainedFormat.hpp:25
@ IMPORT_ADDEND
Definition DyldChainedFormat.hpp:24
@ IMPORT
Definition DyldChainedFormat.hpp:23
DYLD_CHAINED_PTR_FORMAT
Definition DyldChainedFormat.hpp:29
@ PTR_32
Definition DyldChainedFormat.hpp:33
@ PTR_32_FIRMWARE
Definition DyldChainedFormat.hpp:35
@ PTR_ARM64E_SHARED_CACHE
Definition DyldChainedFormat.hpp:44
@ PTR_ARM64E_USERLAND24
Definition DyldChainedFormat.hpp:43
@ PTR_32_CACHE
Definition DyldChainedFormat.hpp:34
@ PTR_64_KERNEL_CACHE
Definition DyldChainedFormat.hpp:39
@ PTR_ARM64E_KERNEL
Definition DyldChainedFormat.hpp:38
@ PTR_ARM64E_FIRMWARE
Definition DyldChainedFormat.hpp:41
@ PTR_X86_64_KERNEL_CACHE
Definition DyldChainedFormat.hpp:42
@ PTR_ARM64E_OFFSET
Definition DyldChainedFormat.hpp:37
@ NONE
Definition DyldChainedFormat.hpp:30
@ PTR_ARM64E
Definition DyldChainedFormat.hpp:31
@ PTR_64
Definition DyldChainedFormat.hpp:32
@ PTR_64_OFFSET
Definition DyldChainedFormat.hpp:36
@ PTR_ARM64E_USERLAND
Definition DyldChainedFormat.hpp:40
const char * to_string(BuildToolVersion::TOOLS tool)
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41