LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
DyldChainedFormat.hpp
Go to the documentation of this file.
1/* Copyright 2024 - 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_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
32
33// values for dyld_chained_starts_in_segment.pointer_format
35 NONE = 0,
36 // stride 8, unauth target is vmaddr
38 // target is vmaddr
39 PTR_64 = 2,
40 PTR_32 = 3,
43 // target is vm offset
45 // old name
47 // stride 4, unauth target is vm offset
50 // stride 8, unauth target is vm offset
52 // stride 4, unauth target is vmaddr
54 // stride 1, x86_64 kernel caches
56 // stride 8, unauth target is vm offset, 24-bit bind
58 // stride 8, regular/auth targets both vm offsets. Only A keys supported
60 // stride 4, rebase offsets use segIndex and segOffset
62};
63
66
67}
68}
69#endif
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
DYLD_CHAINED_FORMAT
Definition DyldChainedFormat.hpp:22
@ IMPORT_ADDEND64
Originally: DYLD_CHAINED_IMPORT_ADDEND64.
Definition DyldChainedFormat.hpp:30
@ IMPORT_ADDEND
Originally: DYLD_CHAINED_IMPORT_ADDEND.
Definition DyldChainedFormat.hpp:27
@ IMPORT
Originally: DYLD_CHAINED_IMPORT.
Definition DyldChainedFormat.hpp:24
DYLD_CHAINED_PTR_FORMAT
Definition DyldChainedFormat.hpp:34
@ PTR_32
Definition DyldChainedFormat.hpp:40
@ PTR_32_FIRMWARE
Definition DyldChainedFormat.hpp:42
@ PTR_ARM64E_SHARED_CACHE
Definition DyldChainedFormat.hpp:59
@ PTR_ARM64E_USERLAND24
Definition DyldChainedFormat.hpp:57
@ PTR_32_CACHE
Definition DyldChainedFormat.hpp:41
@ PTR_64_KERNEL_CACHE
Definition DyldChainedFormat.hpp:49
@ PTR_ARM64E_KERNEL
Definition DyldChainedFormat.hpp:48
@ PTR_ARM64E_FIRMWARE
Definition DyldChainedFormat.hpp:53
@ PTR_X86_64_KERNEL_CACHE
Definition DyldChainedFormat.hpp:55
@ PTR_ARM64E_OFFSET
Definition DyldChainedFormat.hpp:46
@ NONE
Definition DyldChainedFormat.hpp:35
@ PTR_ARM64E
Definition DyldChainedFormat.hpp:37
@ PTR_64
Definition DyldChainedFormat.hpp:39
@ PTR_64_OFFSET
Definition DyldChainedFormat.hpp:44
@ PTR_ARM64E_SEGMENTED
Definition DyldChainedFormat.hpp:61
@ PTR_ARM64E_USERLAND
Definition DyldChainedFormat.hpp:51
const char * to_string(BuildToolVersion::TOOLS tool)
LIEF namespace.
Definition Abstract/Binary.hpp:41
#define LIEF_API
Definition visibility.h:45