Searched refs:MachO (Results 1 - 25 of 129) sorted by relevance

123456

/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCAsmInfoDarwin.cpp15 #include "llvm/BinaryFormat/MachO.h"
29 if (SMO.getType() == MachO::S_CSTRING_LITERALS)
45 case MachO::S_4BYTE_LITERALS:
46 case MachO::S_8BYTE_LITERALS:
47 case MachO::S_16BYTE_LITERALS:
48 case MachO::S_LITERAL_POINTERS:
49 case MachO::S_NON_LAZY_SYMBOL_POINTERS:
50 case MachO::S_LAZY_SYMBOL_POINTERS:
51 case MachO::S_THREAD_LOCAL_VARIABLE_POINTERS:
52 case MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/TextAPI/MachO/
H A DPlatform.h1 //===- llvm/TextAPI/MachO/Platform.h - Platform -----------------*- C++ -*-===//
16 #include "llvm/BinaryFormat/MachO.h"
19 namespace MachO { namespace in namespace:llvm
21 /// Defines the list of MachO platforms.
24 macOS = MachO::PLATFORM_MACOS,
25 iOS = MachO::PLATFORM_IOS,
26 tvOS = MachO::PLATFORM_TVOS,
27 watchOS = MachO::PLATFORM_WATCHOS,
28 bridgeOS = MachO::PLATFORM_BRIDGEOS,
29 macCatalyst = MachO
[all...]
H A DTextAPIWriter.h15 namespace MachO { namespace in namespace:llvm
26 } // end namespace MachO.
H A DTextAPIReader.h16 namespace MachO { namespace in namespace:llvm
28 } // end namespace MachO.
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp9 // This file implements the MachO-specific dumper for llvm-readobj.
19 #include "llvm/Object/MachO.h"
41 // MachO-specific.
85 { "Magic", MachO::MH_MAGIC },
86 { "Cigam", MachO::MH_CIGAM },
87 { "Magic64", MachO::MH_MAGIC_64 },
88 { "Cigam64", MachO::MH_CIGAM_64 },
89 { "FatMagic", MachO::FAT_MAGIC },
90 { "FatCigam", MachO::FAT_CIGAM },
94 { "Relocatable", MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/TextAPI/MachO/
H A DTextStubCommon.h19 #include "llvm/TextAPI/MachO/Architecture.h"
20 #include "llvm/TextAPI/MachO/ArchitectureSet.h"
21 #include "llvm/TextAPI/MachO/InterfaceFile.h"
22 #include "llvm/TextAPI/MachO/PackedVersion.h"
24 using UUID = std::pair<llvm::MachO::Target, std::string>;
40 template <> struct ScalarEnumerationTraits<MachO::ObjCConstraintType> {
41 static void enumeration(IO &, MachO::ObjCConstraintType &);
44 template <> struct ScalarTraits<MachO::PlatformSet> {
45 static void output(const MachO::PlatformSet &, void *, raw_ostream &);
46 static StringRef input(StringRef, void *, MachO
[all...]
H A DTextAPIContext.h20 namespace MachO { namespace in namespace:llvm
30 } // end namespace MachO.
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DMachO.cpp1 //===-------------- MachO.cpp - JIT linker function for MachO -------------===//
10 // MachO jit-link function.
14 #include "llvm/ExecutionEngine/JITLink/MachO.h"
16 #include "llvm/BinaryFormat/MachO.h"
32 // We don't want to do full MachO validation here. Just parse enough of the
33 // header to find out what MachO linker to use.
37 Ctx->notifyFailed(make_error<JITLinkError>("Truncated MachO buffer"));
49 if (Magic == MachO::MH_MAGIC || Magic == MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileYAML.cpp1 //===- lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp -----------------===//
25 #include "llvm/BinaryFormat/MachO.h"
37 using namespace llvm::MachO;
152 io.enumCase(value, "MH_OBJECT", llvm::MachO::MH_OBJECT);
153 io.enumCase(value, "MH_DYLIB", llvm::MachO::MH_DYLIB);
154 io.enumCase(value, "MH_EXECUTE", llvm::MachO::MH_EXECUTE);
155 io.enumCase(value, "MH_BUNDLE", llvm::MachO::MH_BUNDLE);
164 llvm::MachO::MH_TWOLEVEL);
166 llvm::MachO::MH_SUBSECTIONS_VIA_SYMBOLS);
175 llvm::MachO
[all...]
H A DExecutableAtoms.h1 //===- lib/ReaderWriter/MachO/ExecutableAtoms.h ---------------------------===//
15 #include "llvm/BinaryFormat/MachO.h"
75 case llvm::MachO::MH_OBJECT:
78 case llvm::MachO::MH_EXECUTE:
83 case llvm::MachO::MH_FVMLIB:
85 case llvm::MachO::MH_CORE:
87 case llvm::MachO::MH_PRELOAD:
89 case llvm::MachO::MH_DYLIB:
93 case llvm::MachO::MH_DYLINKER:
97 case llvm::MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/
H A DMachOLayoutBuilder.cpp21 const MachO::macho_load_command &MLC = LC.MachOLoadCommand;
24 case MachO::LC_SEGMENT:
25 Size += sizeof(MachO::segment_command) +
26 sizeof(MachO::section) * LC.Sections.size();
28 case MachO::LC_SEGMENT_64:
29 Size += sizeof(MachO::segment_command_64) +
30 sizeof(MachO::section_64) * LC.Sections.size();
36 case MachO::LCName: \
37 Size += sizeof(MachO::LCStruct) + LC.Payload.size(); \
39 #include "llvm/BinaryFormat/MachO
[all...]
H A DMachOWriter.cpp13 #include "llvm/BinaryFormat/MachO.h"
14 #include "llvm/Object/MachO.h"
24 return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
31 (Is64Bit ? sizeof(MachO::nlist_64) : sizeof(MachO::nlist));
41 const MachO::symtab_command &SymTabCommand =
50 const MachO::dyld_info_command &DyLdInfoCommand =
83 const MachO::dysymtab_command &DySymTabCommand =
93 const MachO
[all...]
H A DMachOLayoutBuilder.h25 MachO::macho_load_command *LinkEditLoadCommand = nullptr;
26 StringTableBuilder StrTableBuilder{StringTableBuilder::MachO};
31 void updateDySymTab(MachO::macho_load_command &MLC);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAsmBackendDarwin.h13 #include "llvm/BinaryFormat/MachO.h"
20 const MachO::CPUSubTypeARM Subtype;
22 const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
27 return createARMMachObjectWriter(/*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
H A DARMMachObjectWriter.cpp13 #include "llvm/BinaryFormat/MachO.h"
64 RelocType = unsigned(MachO::ARM_RELOC_VANILLA);
98 RelocType = unsigned(MachO::ARM_RELOC_BR24);
106 RelocType = unsigned(MachO::ARM_THUMB_RELOC_BR22);
120 RelocType = unsigned(MachO::ARM_RELOC_HALF);
124 RelocType = unsigned(MachO::ARM_RELOC_HALF);
129 RelocType = unsigned(MachO::ARM_RELOC_HALF);
133 RelocType = unsigned(MachO::ARM_RELOC_HALF);
158 unsigned Type = MachO::ARM_RELOC_HALF;
186 Type = MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Object/
H A DMachOObjectFile.cpp22 #include "llvm/BinaryFormat/MachO.h"
24 #include "llvm/Object/MachO.h"
71 report_fatal_error("Malformed MachO file.");
76 MachO::swapStruct(Cmd);
89 MachO::swapStruct(Cmd);
99 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) :
100 sizeof(MachO::segment_command);
101 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) :
102 sizeof(MachO::section);
113 static MachO
[all...]
H A DMachOUniversal.cpp15 #include "llvm/Object/MachO.h"
50 if (Parent->getMagic() == MachO::FAT_MAGIC) {
51 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) +
52 Index * sizeof(MachO::fat_arch);
53 Header = getUniversalBinaryStruct<MachO::fat_arch>(HeaderPos);
54 } else { // Parent->getMagic() == MachO::FAT_MAGIC_64
55 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) +
56 Index * sizeof(MachO::fat_arch_64);
57 Header64 = getUniversalBinaryStruct<MachO::fat_arch_64>(HeaderPos);
71 if (Parent->getMagic() == MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h1 //===-- RuntimeDyldMachOAArch64.h -- MachO/AArch64 specific code. -*- C++ -*-=//
51 case MachO::ARM64_RELOC_POINTER_TO_GOT:
52 case MachO::ARM64_RELOC_UNSIGNED: {
65 case MachO::ARM64_RELOC_BRANCH26:
66 case MachO::ARM64_RELOC_PAGE21:
67 case MachO::ARM64_RELOC_PAGEOFF12:
68 case MachO::ARM64_RELOC_GOT_LOAD_PAGE21:
69 case MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12:
79 case MachO::ARM64_RELOC_POINTER_TO_GOT:
80 case MachO
[all...]
H A DRuntimeDyldMachOARM.h1 //===----- RuntimeDyldMachOARM.h ---- MachO/ARM specific code. ----*- C++ -*-=//
70 case MachO::ARM_RELOC_BR24: {
77 case MachO::ARM_THUMB_RELOC_BR22: {
107 MachO::any_relocation_info RelInfo =
134 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF)
137 else if (RelType == MachO::GENERIC_RELOC_VANILLA)
146 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PAIR);
147 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_SECTDIFF);
148 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_LOCAL_SECTDIFF);
149 UNIMPLEMENTED_RELOC(MachO
348 const MachOObjectFile &MachO = local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp28 #include "llvm/Object/MachO.h"
339 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj))
340 return MachO->is64Bit();
358 MachO::mach_header H;
359 MachO::mach_header_64 H_64;
360 uint32_t Filetype = MachO::MH_OBJECT;
367 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); local
371 NType |= MachO::N_EXT;
373 NType |= MachO::N_PEXT;
375 NType |= MachO
662 darwinPrintStab(MachOObjectFile *MachO, const NMSymbol &S) argument
797 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); local
1205 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); local
1751 auto *MachO = dyn_cast<MachOObjectFile>(O); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp1 //===- MachOYAML.cpp - MachO YAMLIO implementation ------------------------===//
9 // This file defines classes for handling the YAML representation of MachO.
15 #include "llvm/BinaryFormat/MachO.h"
92 if (FileHdr.magic == MachO::MH_MAGIC_64 ||
93 FileHdr.magic == MachO::MH_CIGAM_64)
205 void mapLoadCommandData<MachO::segment_command>(
211 void mapLoadCommandData<MachO::segment_command_64>(
217 void mapLoadCommandData<MachO::dylib_command>(
223 void mapLoadCommandData<MachO::rpath_command>(
229 void mapLoadCommandData<MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp12 #include "llvm/BinaryFormat/MachO.h"
47 report_fatal_error("Relocation emission for MachO/PPC64 unimplemented.");
90 unsigned Type = MachO::GENERIC_RELOC_VANILLA;
96 Type = MachO::PPC_RELOC_BR24; // R_PPC_REL24
99 Type = MachO::PPC_RELOC_BR14;
106 Type = MachO::PPC_RELOC_HA16;
109 Type = MachO::PPC_RELOC_LO16;
112 Type = MachO::PPC_RELOC_HI16;
126 Type = MachO::PPC_RELOC_HA16_SECTDIFF;
129 Type = MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp12 #include "llvm/BinaryFormat/MachO.h"
54 RelocType = unsigned(MachO::ARM64_RELOC_UNSIGNED);
70 RelocType = unsigned(MachO::ARM64_RELOC_POINTER_TO_GOT);
75 RelocType = unsigned(MachO::ARM64_RELOC_POINTER_TO_GOT);
88 RelocType = unsigned(MachO::ARM64_RELOC_PAGEOFF12);
91 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12);
94 RelocType = unsigned(MachO::ARM64_RELOC_TLVP_LOAD_PAGEOFF12);
106 RelocType = unsigned(MachO::ARM64_RELOC_PAGE21);
109 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGE21);
112 RelocType = unsigned(MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DMachOYAML.h19 #include "llvm/BinaryFormat/MachO.h"
60 llvm::MachO::macho_load_command Data;
62 std::vector<MachO::build_tool_version> Tools;
77 MachO::RebaseOpcode Opcode;
83 MachO::BindOpcode Opcode;
153 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachO::build_tool_version)
210 template <> struct MappingTraits<MachO::build_tool_version> {
211 static void mapping(IO &IO, MachO::build_tool_version &tool);
215 io.enumCase(value, #LCName, MachO::LCName);
217 template <> struct ScalarEnumerationTraits<MachO
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DMachO.h1 //===- MachO.h - MachO object file implementation ---------------*- C++ -*-===//
10 // interface for MachO files.
24 #include "llvm/BinaryFormat/MachO.h"
266 MachO::load_command C; // The command itself.
280 // MachO specific.
343 // MachO specific.
355 // MachO specific.
459 // In a MachO file, sections have a segment name. This is used in the .o
469 // MachO specifi
[all...]

Completed in 319 milliseconds

123456