Home
last modified time | relevance | path

Searched refs:MachO (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/external/llvm-project/llvm/unittests/BinaryFormat/
DMachOTest.cpp14 using namespace llvm::MachO;
51 ASSERT_EQ((MachO::CPUType)cantFail(MachO::getCPUType(Triple(StrTriple))), \ in TEST()
53 CHECK_CPUTYPE("x86_64-apple-darwin", MachO::CPU_TYPE_X86_64); in TEST()
54 CHECK_CPUTYPE("x86_64h-apple-darwin", MachO::CPU_TYPE_X86_64); in TEST()
55 CHECK_CPUTYPE("i386-apple-darwin", MachO::CPU_TYPE_X86); in TEST()
56 CHECK_CPUTYPE("armv7-apple-darwin", MachO::CPU_TYPE_ARM); in TEST()
57 CHECK_CPUTYPE("thumbv7-apple-darwin", MachO::CPU_TYPE_ARM); in TEST()
58 CHECK_CPUTYPE("arm64-apple-darwin", MachO::CPU_TYPE_ARM64); in TEST()
59 CHECK_CPUTYPE("arm64e-apple-darwin", MachO::CPU_TYPE_ARM64); in TEST()
60 CHECK_CPUTYPE("arm64_32-apple-darwin", MachO::CPU_TYPE_ARM64_32); in TEST()
[all …]
/external/llvm-project/llvm/tools/llvm-readobj/
DMachODumper.cpp78 { "Magic", MachO::MH_MAGIC },
79 { "Cigam", MachO::MH_CIGAM },
80 { "Magic64", MachO::MH_MAGIC_64 },
81 { "Cigam64", MachO::MH_CIGAM_64 },
82 { "FatMagic", MachO::FAT_MAGIC },
83 { "FatCigam", MachO::FAT_CIGAM },
87 { "Relocatable", MachO::MH_OBJECT },
88 { "Executable", MachO::MH_EXECUTE },
89 { "FixedVMLibrary", MachO::MH_FVMLIB },
90 { "Core", MachO::MH_CORE },
[all …]
/external/llvm-project/llvm/include/llvm/TextAPI/MachO/
DArchitecture.def1 //===- llvm/TextAPI/MachO/Architecture.def - Architecture -----------------===//
16 ARCHINFO(i386, MachO::CPU_TYPE_I386, MachO::CPU_SUBTYPE_I386_ALL, 32)
17 ARCHINFO(x86_64, MachO::CPU_TYPE_X86_64, MachO::CPU_SUBTYPE_X86_64_ALL, 64)
18 ARCHINFO(x86_64h, MachO::CPU_TYPE_X86_64, MachO::CPU_SUBTYPE_X86_64_H, 64)
24 ARCHINFO(armv4t, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V4T, 32)
25 ARCHINFO(armv6, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V6, 32)
26 ARCHINFO(armv5, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V5TEJ, 32)
27 ARCHINFO(armv7, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V7, 32)
28 ARCHINFO(armv7s, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V7S, 32)
29 ARCHINFO(armv7k, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V7K, 32)
[all …]
/external/llvm/tools/llvm-readobj/
DMachODumper.cpp84 { "Magic", MachO::MH_MAGIC },
85 { "Cigam", MachO::MH_CIGAM },
86 { "Magic64", MachO::MH_MAGIC_64 },
87 { "Cigam64", MachO::MH_CIGAM_64 },
88 { "FatMagic", MachO::FAT_MAGIC },
89 { "FatCigam", MachO::FAT_CIGAM },
93 { "Relocatable", MachO::MH_OBJECT },
94 { "Executable", MachO::MH_EXECUTE },
95 { "FixedVMLibrary", MachO::MH_FVMLIB },
96 { "Core", MachO::MH_CORE },
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TextAPI/MachO/
DArchitecture.def1 //===- llvm/TextAPI/MachO/Architecture.def - Architecture -----------------===//
16 ARCHINFO(i386, MachO::CPU_TYPE_I386, MachO::CPU_SUBTYPE_I386_ALL)
17 ARCHINFO(x86_64, MachO::CPU_TYPE_X86_64, MachO::CPU_SUBTYPE_X86_64_ALL)
18 ARCHINFO(x86_64h, MachO::CPU_TYPE_X86_64, MachO::CPU_SUBTYPE_X86_64_H)
24 ARCHINFO(armv4t, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V4T)
25 ARCHINFO(armv6, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V6)
26 ARCHINFO(armv5, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V5TEJ)
27 ARCHINFO(armv7, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V7)
28 ARCHINFO(armv7s, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V7S)
29 ARCHINFO(armv7k, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V7K)
[all …]
/external/llvm/lib/Object/
DMachOObjectFile.cpp58 MachO::swapStruct(Cmd); in getStruct()
71 MachO::swapStruct(Cmd); in getStructOrErr()
81 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) : in getSectionPtr()
82 sizeof(MachO::segment_command); in getSectionPtr()
83 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) : in getSectionPtr()
84 sizeof(MachO::section); in getSectionPtr()
94 static MachO::nlist_base
97 return getStruct<MachO::nlist_base>(O, P); in getSymbolTableEntryBase()
120 getPlainRelocationAddress(const MachO::any_relocation_info &RE) { in getPlainRelocationAddress()
125 getScatteredRelocationAddress(const MachO::any_relocation_info &RE) { in getScatteredRelocationAddress()
[all …]
/external/llvm-project/llvm/lib/BinaryFormat/
DMachO.cpp15 static MachO::CPUSubTypeX86 getX86SubType(const Triple &T) { in getX86SubType()
18 return MachO::CPU_SUBTYPE_I386_ALL; in getX86SubType()
22 return MachO::CPU_SUBTYPE_X86_64_H; in getX86SubType()
23 return MachO::CPU_SUBTYPE_X86_64_ALL; in getX86SubType()
26 static MachO::CPUSubTypeARM getARMSubType(const Triple &T) { in getARMSubType()
32 return MachO::CPU_SUBTYPE_ARM_V7; in getARMSubType()
34 return MachO::CPU_SUBTYPE_ARM_V4T; in getARMSubType()
38 return MachO::CPU_SUBTYPE_ARM_V5; in getARMSubType()
41 return MachO::CPU_SUBTYPE_ARM_V6; in getARMSubType()
43 return MachO::CPU_SUBTYPE_ARM_V7; in getARMSubType()
[all …]
/external/llvm-project/llvm/lib/Object/
DMachOObjectFile.cpp76 MachO::swapStruct(Cmd); in getStruct()
89 MachO::swapStruct(Cmd); in getStructOrErr()
99 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) : in getSectionPtr()
100 sizeof(MachO::segment_command); in getSectionPtr()
101 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) : in getSectionPtr()
102 sizeof(MachO::section); in getSectionPtr()
113 static MachO::nlist_base
116 return getStruct<MachO::nlist_base>(O, P); in getSymbolTableEntryBase()
136 getPlainRelocationAddress(const MachO::any_relocation_info &RE) { in getPlainRelocationAddress()
141 getScatteredRelocationAddress(const MachO::any_relocation_info &RE) { in getScatteredRelocationAddress()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DMachOObjectFile.cpp76 MachO::swapStruct(Cmd); in getStruct()
89 MachO::swapStruct(Cmd); in getStructOrErr()
99 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) : in getSectionPtr()
100 sizeof(MachO::segment_command); in getSectionPtr()
101 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) : in getSectionPtr()
102 sizeof(MachO::section); in getSectionPtr()
113 static MachO::nlist_base
116 return getStruct<MachO::nlist_base>(O, P); in getSymbolTableEntryBase()
136 getPlainRelocationAddress(const MachO::any_relocation_info &RE) { in getPlainRelocationAddress()
141 getScatteredRelocationAddress(const MachO::any_relocation_info &RE) { in getScatteredRelocationAddress()
[all …]
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DMachONormalizedFileYAML.cpp37 using namespace llvm::MachO;
152 io.enumCase(value, "MH_OBJECT", llvm::MachO::MH_OBJECT); in enumeration()
153 io.enumCase(value, "MH_DYLIB", llvm::MachO::MH_DYLIB); in enumeration()
154 io.enumCase(value, "MH_EXECUTE", llvm::MachO::MH_EXECUTE); in enumeration()
155 io.enumCase(value, "MH_BUNDLE", llvm::MachO::MH_BUNDLE); in enumeration()
164 llvm::MachO::MH_TWOLEVEL); in bitset()
166 llvm::MachO::MH_SUBSECTIONS_VIA_SYMBOLS); in bitset()
175 llvm::MachO::S_REGULAR); in enumeration()
177 llvm::MachO::S_ZEROFILL); in enumeration()
179 llvm::MachO::S_CSTRING_LITERALS); in enumeration()
[all …]
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h51 case MachO::ARM64_RELOC_POINTER_TO_GOT: in decodeAddend()
52 case MachO::ARM64_RELOC_UNSIGNED: { in decodeAddend()
65 case MachO::ARM64_RELOC_BRANCH26: in decodeAddend()
66 case MachO::ARM64_RELOC_PAGE21: in decodeAddend()
67 case MachO::ARM64_RELOC_PAGEOFF12: in decodeAddend()
68 case MachO::ARM64_RELOC_GOT_LOAD_PAGE21: in decodeAddend()
69 case MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12: in decodeAddend()
79 case MachO::ARM64_RELOC_POINTER_TO_GOT: in decodeAddend()
80 case MachO::ARM64_RELOC_UNSIGNED: in decodeAddend()
87 case MachO::ARM64_RELOC_BRANCH26: { in decodeAddend()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h51 case MachO::ARM64_RELOC_POINTER_TO_GOT: in decodeAddend()
52 case MachO::ARM64_RELOC_UNSIGNED: { in decodeAddend()
65 case MachO::ARM64_RELOC_BRANCH26: in decodeAddend()
66 case MachO::ARM64_RELOC_PAGE21: in decodeAddend()
67 case MachO::ARM64_RELOC_PAGEOFF12: in decodeAddend()
68 case MachO::ARM64_RELOC_GOT_LOAD_PAGE21: in decodeAddend()
69 case MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12: in decodeAddend()
79 case MachO::ARM64_RELOC_POINTER_TO_GOT: in decodeAddend()
80 case MachO::ARM64_RELOC_UNSIGNED: in decodeAddend()
87 case MachO::ARM64_RELOC_BRANCH26: { in decodeAddend()
[all …]
DRuntimeDyldMachOARM.h70 case MachO::ARM_RELOC_BR24: { in decodeAddend()
77 case MachO::ARM_THUMB_RELOC_BR22: { in decodeAddend()
107 MachO::any_relocation_info RelInfo = in processRelocationRef()
134 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
137 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
146 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PAIR); in processRelocationRef()
147 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_SECTDIFF); in processRelocationRef()
148 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_LOCAL_SECTDIFF); in processRelocationRef()
149 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PB_LA_PTR); in processRelocationRef()
150 UNIMPLEMENTED_RELOC(MachO::ARM_THUMB_32BIT_BRANCH); in processRelocationRef()
[all …]
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOLayoutBuilder.cpp20 if (O.Header.FileType == MachO::HeaderFileType::MH_OBJECT) in getStringTableBuilderKind()
21 return Is64Bit ? StringTableBuilder::MachO64 : StringTableBuilder::MachO; in getStringTableBuilderKind()
29 const MachO::macho_load_command &MLC = LC.MachOLoadCommand; in computeSizeOfCmds()
32 case MachO::LC_SEGMENT: in computeSizeOfCmds()
33 Size += sizeof(MachO::segment_command) + in computeSizeOfCmds()
34 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
36 case MachO::LC_SEGMENT_64: in computeSizeOfCmds()
37 Size += sizeof(MachO::segment_command_64) + in computeSizeOfCmds()
38 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds()
44 case MachO::LCName: \ in computeSizeOfCmds()
[all …]
/external/llvm-project/llvm/tools/llvm-nm/
Dllvm-nm.cpp356 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit() local
357 return MachO->is64Bit(); in isSymbolList64Bit()
375 MachO::mach_header H; in darwinPrintSymbol()
376 MachO::mach_header_64 H_64; in darwinPrintSymbol()
377 uint32_t Filetype = MachO::MH_OBJECT; in darwinPrintSymbol()
384 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol() local
388 NType |= MachO::N_EXT; in darwinPrintSymbol()
390 NType |= MachO::N_PEXT; in darwinPrintSymbol()
392 NType |= MachO::N_EXT | MachO::N_UNDF; in darwinPrintSymbol()
397 NType |= MachO::N_SECT; in darwinPrintSymbol()
[all …]
/external/llvm-project/llvm/lib/ObjectYAML/
DMachOYAML.cpp92 if (FileHdr.magic == MachO::MH_MAGIC_64 || in mapping()
93 FileHdr.magic == MachO::MH_CIGAM_64) in mapping()
110 Object.DWARF.Is64BitAddrSize = Object.Header.magic == MachO::MH_MAGIC_64 || in mapping()
111 Object.Header.magic == MachO::MH_CIGAM_64; in mapping()
207 void mapLoadCommandData<MachO::segment_command>( in mapLoadCommandData()
213 void mapLoadCommandData<MachO::segment_command_64>( in mapLoadCommandData()
219 void mapLoadCommandData<MachO::dylib_command>( in mapLoadCommandData()
225 void mapLoadCommandData<MachO::rpath_command>( in mapLoadCommandData()
231 void mapLoadCommandData<MachO::dylinker_command>( in mapLoadCommandData()
237 void mapLoadCommandData<MachO::build_version_command>( in mapLoadCommandData()
[all …]
DMachOEmitter.cpp33 is64Bit = Obj.Header.magic == MachO::MH_MAGIC_64 || in MachOWriter()
34 Obj.Header.magic == MachO::MH_CIGAM_64; in MachOWriter()
35 memset(reinterpret_cast<void *>(&Header), 0, sizeof(MachO::mach_header_64)); in MachOWriter()
64 MachO::mach_header_64 Header;
94 MachO::swapStruct(Header); in writeHeader()
97 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
125 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
130 auto TempSec = constructSection<MachO::section>(Sec); in writeLoadCommandData()
132 MachO::swapStruct(TempSec); in writeLoadCommandData()
134 sizeof(MachO::section)); in writeLoadCommandData()
[all …]
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp277 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit() local
278 return MachO->is64Bit(); in isSymbolList64Bit()
296 MachO::mach_header H; in darwinPrintSymbol()
297 MachO::mach_header_64 H_64; in darwinPrintSymbol()
298 uint32_t Filetype = MachO::MH_OBJECT; in darwinPrintSymbol()
305 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol() local
309 NType |= MachO::N_EXT; in darwinPrintSymbol()
311 NType |= MachO::N_PEXT; in darwinPrintSymbol()
313 NType |= MachO::N_EXT | MachO::N_UNDF; in darwinPrintSymbol()
318 NType |= MachO::N_SECT; in darwinPrintSymbol()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DMachOYAML.cpp92 if (FileHdr.magic == MachO::MH_MAGIC_64 || in mapping()
93 FileHdr.magic == MachO::MH_CIGAM_64) in mapping()
205 void mapLoadCommandData<MachO::segment_command>( in mapLoadCommandData()
211 void mapLoadCommandData<MachO::segment_command_64>( in mapLoadCommandData()
217 void mapLoadCommandData<MachO::dylib_command>( in mapLoadCommandData()
223 void mapLoadCommandData<MachO::rpath_command>( in mapLoadCommandData()
229 void mapLoadCommandData<MachO::dylinker_command>( in mapLoadCommandData()
235 void mapLoadCommandData<MachO::build_version_command>( in mapLoadCommandData()
242 MachO::LoadCommandType TempCmd = static_cast<MachO::LoadCommandType>( in mapping()
249 case MachO::LCName: \ in mapping()
[all …]
/external/llvm/lib/ObjectYAML/
DMachOYAML.cpp83 if (FileHdr.magic == MachO::MH_MAGIC_64 || in mapping()
84 FileHdr.magic == MachO::MH_CIGAM_64) in mapping()
187 void mapLoadCommandData<MachO::segment_command>( in mapLoadCommandData()
193 void mapLoadCommandData<MachO::segment_command_64>( in mapLoadCommandData()
199 void mapLoadCommandData<MachO::dylib_command>( in mapLoadCommandData()
205 void mapLoadCommandData<MachO::rpath_command>( in mapLoadCommandData()
211 void mapLoadCommandData<MachO::dylinker_command>( in mapLoadCommandData()
218 MachO::LoadCommandType TempCmd = static_cast<MachO::LoadCommandType>( in mapping()
225 case MachO::LCName: \ in mapping()
226 MappingTraits<MachO::LCStruct>::mapping(IO, \ in mapping()
[all …]
/external/llvm-project/llvm/include/llvm/Object/
DMachO.h266 MachO::load_command C; // The command itself.
471 bool isRelocationScattered(const MachO::any_relocation_info &RE) const;
473 const MachO::any_relocation_info &RE) const;
474 bool getPlainRelocationExternal(const MachO::any_relocation_info &RE) const;
476 const MachO::any_relocation_info &RE) const;
478 const MachO::any_relocation_info &RE) const;
480 const MachO::any_relocation_info &RE) const;
481 unsigned getAnyRelocationAddress(const MachO::any_relocation_info &RE) const;
482 unsigned getAnyRelocationPCRel(const MachO::any_relocation_info &RE) const;
483 unsigned getAnyRelocationLength(const MachO::any_relocation_info &RE) const;
[all …]
/external/llvm/include/llvm/Object/
DMachO.h191 MachO::load_command C; // The command itself.
317 bool isRelocationScattered(const MachO::any_relocation_info &RE) const;
319 const MachO::any_relocation_info &RE) const;
320 bool getPlainRelocationExternal(const MachO::any_relocation_info &RE) const;
322 const MachO::any_relocation_info &RE) const;
324 const MachO::any_relocation_info &RE) const;
326 const MachO::any_relocation_info &RE) const;
327 unsigned getAnyRelocationAddress(const MachO::any_relocation_info &RE) const;
328 unsigned getAnyRelocationPCRel(const MachO::any_relocation_info &RE) const;
329 unsigned getAnyRelocationLength(const MachO::any_relocation_info &RE) const;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DMachO.h266 MachO::load_command C; // The command itself.
470 bool isRelocationScattered(const MachO::any_relocation_info &RE) const;
472 const MachO::any_relocation_info &RE) const;
473 bool getPlainRelocationExternal(const MachO::any_relocation_info &RE) const;
475 const MachO::any_relocation_info &RE) const;
477 const MachO::any_relocation_info &RE) const;
479 const MachO::any_relocation_info &RE) const;
480 unsigned getAnyRelocationAddress(const MachO::any_relocation_info &RE) const;
481 unsigned getAnyRelocationPCRel(const MachO::any_relocation_info &RE) const;
482 unsigned getAnyRelocationLength(const MachO::any_relocation_info &RE) const;
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h44 case MachO::ARM64_RELOC_UNSIGNED: in decodeAddend()
47 case MachO::ARM64_RELOC_BRANCH26: in decodeAddend()
48 case MachO::ARM64_RELOC_PAGE21: in decodeAddend()
49 case MachO::ARM64_RELOC_PAGEOFF12: in decodeAddend()
50 case MachO::ARM64_RELOC_GOT_LOAD_PAGE21: in decodeAddend()
51 case MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12: in decodeAddend()
61 case MachO::ARM64_RELOC_UNSIGNED: in decodeAddend()
68 case MachO::ARM64_RELOC_BRANCH26: { in decodeAddend()
80 case MachO::ARM64_RELOC_GOT_LOAD_PAGE21: in decodeAddend()
81 case MachO::ARM64_RELOC_PAGE21: { in decodeAddend()
[all …]
DRuntimeDyldMachOARM.h44 case MachO::ARM_RELOC_BR24: { in decodeAddend()
60 MachO::any_relocation_info RelInfo = in processRelocationRef()
65 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
68 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
76 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PAIR); in processRelocationRef()
77 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_SECTDIFF); in processRelocationRef()
78 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_LOCAL_SECTDIFF); in processRelocationRef()
79 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PB_LA_PTR); in processRelocationRef()
80 UNIMPLEMENTED_RELOC(MachO::ARM_THUMB_RELOC_BR22); in processRelocationRef()
81 UNIMPLEMENTED_RELOC(MachO::ARM_THUMB_32BIT_BRANCH); in processRelocationRef()
[all …]

12345678910>>...19