Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp9 // This file implements the MachO-specific dumper for llvm-readobj.
18 #include "llvm/Object/MachO.h"
47 // MachO-specific.
91 { "Magic", MachO::MH_MAGIC },
92 { "Cigam", MachO::MH_CIGAM },
93 { "Magic64", MachO::MH_MAGIC_64 },
94 { "Cigam64", MachO::MH_CIGAM_64 },
95 { "FatMagic", MachO::FAT_MAGIC },
96 { "FatCigam", MachO::FAT_CIGAM },
100 { "Relocatable", MachO
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/TextAPI/
H A DArchitecture.def16 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)
30 ARCHINFO(armv6m, MachO::CPU_TYPE_ARM, MachO::CPU_SUBTYPE_ARM_V6M, 32)
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/InstallAPI/
H A DMachO.h26 using AliasMap = llvm::MachO::AliasMap;
27 using Architecture = llvm::MachO::Architecture;
28 using ArchitectureSet = llvm::MachO::ArchitectureSet;
29 using SymbolFlags = llvm::MachO::SymbolFlags;
30 using RecordLinkage = llvm::MachO::RecordLinkage;
31 using Record = llvm::MachO::Record;
32 using EncodeKind = llvm::MachO::EncodeKind;
33 using GlobalRecord = llvm::MachO::GlobalRecord;
34 using InterfaceFile = llvm::MachO::InterfaceFile;
35 using ObjCContainerRecord = llvm::MachO::ObjCContainerRecord;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DMachOObjectFile.cpp79 MachO::swapStruct(Cmd); in getStruct()
92 MachO::swapStruct(Cmd); in getStructOrErr()
102 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) : in getSectionPtr()
103 sizeof(MachO::segment_command); in getSectionPtr()
104 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) : in getSectionPtr()
105 sizeof(MachO::section); in getSectionPtr()
118 static MachO::nlist_base
121 return getStruct<MachO::nlist_base>(O, P); in getSymbolTableEntryBase()
137 return O.getHeader().cpusubtype & ~MachO::CPU_SUBTYPE_MASK; in getCPUSubType()
141 getPlainRelocationAddress(const MachO::any_relocation_info &RE) { in getPlainRelocationAddress()
[all …]
H A DMachOUniversal.cpp50 if (Parent->getMagic() == MachO::FAT_MAGIC) { in ObjectForArch()
51 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) + in ObjectForArch()
52 Index * sizeof(MachO::fat_arch); in ObjectForArch()
53 Header = getUniversalBinaryStruct<MachO::fat_arch>(HeaderPos); in ObjectForArch()
55 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) + in ObjectForArch()
56 Index * sizeof(MachO::fat_arch_64); in ObjectForArch()
57 Header64 = getUniversalBinaryStruct<MachO::fat_arch_64>(HeaderPos); in ObjectForArch()
71 if (Parent->getMagic() == MachO::FAT_MAGIC) { in getAsObjectFile()
91 if (Parent->getMagic() == MachO::FAT_MAGIC) { in getAsIRObject()
110 if (Parent->getMagic() == MachO::FAT_MAGIC) in getAsArchive()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A 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 …]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A 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 …]
H A DMachOObject.cpp60 case MachO::LC_CODE_SIGNATURE: in updateLoadCommandIndexes()
63 case MachO::LC_SEGMENT: in updateLoadCommandIndexes()
68 case MachO::LC_SEGMENT_64: in updateLoadCommandIndexes()
73 case MachO::LC_SYMTAB: in updateLoadCommandIndexes()
76 case MachO::LC_DYSYMTAB: in updateLoadCommandIndexes()
79 case MachO::LC_DYLD_INFO: in updateLoadCommandIndexes()
80 case MachO::LC_DYLD_INFO_ONLY: in updateLoadCommandIndexes()
83 case MachO::LC_DATA_IN_CODE: in updateLoadCommandIndexes()
86 case MachO::LC_LINKER_OPTIMIZATION_HINT: in updateLoadCommandIndexes()
89 case MachO::LC_FUNCTION_STARTS: in updateLoadCommandIndexes()
[all …]
H A DMachOWriter.cpp28 return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in headerSize()
35 (Is64Bit ? sizeof(MachO::nlist_64) : sizeof(MachO::nlist)); in symTableSize()
45 const MachO::symtab_command &SymTabCommand = in totalSize()
54 const MachO::dyld_info_command &DyLdInfoCommand = in totalSize()
87 const MachO::dysymtab_command &DySymTabCommand = in totalSize()
102 const MachO::linkedit_data_command &LinkEditDataCommand = in totalSize()
124 S->NReloc * sizeof(MachO::any_relocation_info)); in totalSize()
135 MachO::mach_header_64 Header; in writeHeader()
147 MachO::swapStruct(Header); in writeHeader()
150 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
[all …]
H A DMachOReader.cpp49 Section constructSection(const MachO::section &Sec, uint32_t Index) { in constructSection()
53 Section constructSection(const MachO::section_64 &Sec, uint32_t Index) { in constructSection()
74 MachO::swapStruct(Sec); in extractSections()
105 R.IsAddend = !R.Scattered && (CPUType == MachO::CPU_TYPE_ARM64 && in extractSections()
106 Type == MachO::ARM64_RELOC_ADDEND); in extractSections()
124 case MachO::LC_CODE_SIGNATURE: in readLoadCommands()
127 case MachO::LC_SEGMENT: in readLoadCommands()
132 LoadCmd.Ptr + offsetof(MachO::segment_command, segname))) == in readLoadCommands()
137 extractSections<MachO::section, MachO::segment_command>( in readLoadCommands()
143 case MachO::LC_SEGMENT_64: in readLoadCommands()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A 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 …]
H A DRuntimeDyldMachOARM.h69 case MachO::ARM_RELOC_BR24: { in decodeAddend()
76 case MachO::ARM_THUMB_RELOC_BR22: { in decodeAddend()
106 MachO::any_relocation_info RelInfo = in processRelocationRef()
133 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
136 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
145 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PAIR); in processRelocationRef()
146 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_SECTDIFF); in processRelocationRef()
147 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_LOCAL_SECTDIFF); in processRelocationRef()
148 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PB_LA_PTR); in processRelocationRef()
149 UNIMPLEMENTED_RELOC(MachO::ARM_THUMB_32BIT_BRANCH); in processRelocationRef()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A 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()
221 void mapLoadCommandData<MachO::segment_command>( in mapLoadCommandData()
227 void mapLoadCommandData<MachO::segment_command_64>( in mapLoadCommandData()
233 void mapLoadCommandData<MachO::dylib_command>( in mapLoadCommandData()
239 void mapLoadCommandData<MachO::rpath_command>( in mapLoadCommandData()
245 void mapLoadCommandData<MachO::dylinker_command>( in mapLoadCommandData()
251 void mapLoadCommandData<MachO::sub_framework_command>( in mapLoadCommandData()
[all …]
H A 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()
69 MachO::mach_header_64 Header;
99 MachO::swapStruct(Header); in writeHeader()
102 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
130 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
135 auto TempSec = constructSection<MachO::section>(Sec); in writeLoadCommandData()
137 MachO::swapStruct(TempSec); in writeLoadCommandData()
139 sizeof(MachO::section)); in writeLoadCommandData()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp305 MachO::mach_header H; in darwinPrintSymbol()
306 MachO::mach_header_64 H_64; in darwinPrintSymbol()
307 uint32_t Filetype = MachO::MH_OBJECT; in darwinPrintSymbol()
314 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol() local
318 NType |= MachO::N_EXT; in darwinPrintSymbol()
320 NType |= MachO::N_PEXT; in darwinPrintSymbol()
322 NType |= MachO::N_EXT | MachO::N_UNDF; in darwinPrintSymbol()
327 NType |= MachO::N_SECT; in darwinPrintSymbol()
336 NDesc |= MachO::N_WEAK_DEF; in darwinPrintSymbol()
339 if (MachO->is64Bit()) { in darwinPrintSymbol()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DMachO.h292 return LibOrdinal == MachO::BIND_SPECIAL_DYLIB_WEAK_LOOKUP; in weakBind()
305 const MachO::dyld_chained_starts_in_segment &Header, in ChainedFixupsSegment()
312 MachO::dyld_chained_starts_in_segment Header;
415 MachO::load_command C; // The command itself.
635 bool isRelocationScattered(const MachO::any_relocation_info &RE) const;
637 const MachO::any_relocation_info &RE) const;
638 bool getPlainRelocationExternal(const MachO::any_relocation_info &RE) const;
640 const MachO::any_relocation_info &RE) const;
642 const MachO::any_relocation_info &RE) const;
644 const MachO::any_relocation_info &RE) const;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStubCommon.h24 using UUID = std::pair<llvm::MachO::Target, std::string>;
45 namespace MachO { in LLVM_YAML_STRONG_TYPEDEF()
64 template <> struct ScalarEnumerationTraits<MachO::ObjCConstraintType> { in LLVM_YAML_STRONG_TYPEDEF()
65 static void enumeration(IO &, MachO::ObjCConstraintType &); in LLVM_YAML_STRONG_TYPEDEF()
68 template <> struct ScalarTraits<MachO::PlatformSet> { in LLVM_YAML_STRONG_TYPEDEF()
69 static void output(const MachO::PlatformSet &, void *, raw_ostream &); in LLVM_YAML_STRONG_TYPEDEF()
70 static StringRef input(StringRef, void *, MachO::PlatformSet &); in LLVM_YAML_STRONG_TYPEDEF()
74 template <> struct ScalarBitSetTraits<MachO::ArchitectureSet> { in LLVM_YAML_STRONG_TYPEDEF()
75 static void bitset(IO &, MachO::ArchitectureSet &); in LLVM_YAML_STRONG_TYPEDEF()
78 template <> struct ScalarTraits<MachO::Architecture> { in LLVM_YAML_STRONG_TYPEDEF()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp225 case MachO::DICE_KIND_DATA: in DumpDataInCode()
245 if (Kind == MachO::DICE_KIND_DATA) in DumpDataInCode()
250 case MachO::DICE_KIND_JUMP_TABLE8: in DumpDataInCode()
257 case MachO::DICE_KIND_JUMP_TABLE16: in DumpDataInCode()
265 case MachO::DICE_KIND_JUMP_TABLE32: in DumpDataInCode()
266 case MachO::DICE_KIND_ABS_JUMP_TABLE32: in DumpDataInCode()
271 if (Kind == MachO::DICE_KIND_JUMP_TABLE32) in DumpDataInCode()
297 if (Command.C.cmd == MachO::LC_FUNCTION_STARTS) { in getSectionsAndSymbols()
300 MachO::linkedit_data_command LLC = in getSectionsAndSymbols()
304 } else if (Command.C.cmd == MachO::LC_SEGMENT) { in getSectionsAndSymbols()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp59 RelocType = unsigned(MachO::ARM_RELOC_VANILLA); in getARMFixupKindMachOInfo()
93 RelocType = unsigned(MachO::ARM_RELOC_BR24); in getARMFixupKindMachOInfo()
101 RelocType = unsigned(MachO::ARM_THUMB_RELOC_BR22); in getARMFixupKindMachOInfo()
115 RelocType = unsigned(MachO::ARM_RELOC_HALF); in getARMFixupKindMachOInfo()
119 RelocType = unsigned(MachO::ARM_RELOC_HALF); in getARMFixupKindMachOInfo()
124 RelocType = unsigned(MachO::ARM_RELOC_HALF); in getARMFixupKindMachOInfo()
128 RelocType = unsigned(MachO::ARM_RELOC_HALF); in getARMFixupKindMachOInfo()
148 unsigned Type = MachO::ARM_RELOC_HALF; in recordARMScatteredHalfRelocation()
174 Type = MachO::ARM_RELOC_HALF_SECTDIFF; in recordARMScatteredHalfRelocation()
215 if (Type == MachO::ARM_RELOC_HALF_SECTDIFF) { in recordARMScatteredHalfRelocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp169 void MachObjectWriter::writeHeader(MachO::HeaderFileType Type, in writeHeader()
176 Flags |= MachO::MH_SUBSECTIONS_VIA_SYMBOLS; in writeHeader()
184 W.write<uint32_t>(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC); in writeHeader()
193 if (TargetObjectWriter->getCPUType() == MachO::CPU_TYPE_ARM64 && in writeHeader()
194 Cpusubtype == MachO::CPU_SUBTYPE_ARM64E) in writeHeader()
195 Cpusubtype = MachO::CPU_SUBTYPE_ARM64E_WITH_PTRAUTH_VERSION( in writeHeader()
207 assert(W.OS.tell() - Start == (is64Bit() ? sizeof(MachO::mach_header_64) in writeHeader()
208 : sizeof(MachO::mach_header))); in writeHeader()
232 is64Bit() ? sizeof(MachO::segment_command_64): in writeSegmentLoadCommand()
233 sizeof(MachO::segment_command); in writeSegmentLoadCommand()
[all …]
H A DMCAsmInfoDarwin.cpp29 if (SMO.getType() == MachO::S_CSTRING_LITERALS) in isSectionAtomizableBySymbols()
44 case MachO::S_4BYTE_LITERALS: in isSectionAtomizableBySymbols()
45 case MachO::S_8BYTE_LITERALS: in isSectionAtomizableBySymbols()
46 case MachO::S_16BYTE_LITERALS: in isSectionAtomizableBySymbols()
47 case MachO::S_LITERAL_POINTERS: in isSectionAtomizableBySymbols()
48 case MachO::S_NON_LAZY_SYMBOL_POINTERS: in isSectionAtomizableBySymbols()
49 case MachO::S_LAZY_SYMBOL_POINTERS: in isSectionAtomizableBySymbols()
50 case MachO::S_THREAD_LOCAL_VARIABLE_POINTERS: in isSectionAtomizableBySymbols()
51 case MachO::S_MOD_INIT_FUNC_POINTERS: in isSectionAtomizableBySymbols()
52 case MachO::S_MOD_TERM_FUNC_POINTERS: in isSectionAtomizableBySymbols()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DArchSpec.cpp296 …{ArchSpec::eCore_arm_generic, llvm::MachO::CPU_TYPE_ARM, CPU_ANY, …
297 …{ArchSpec::eCore_arm_generic, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_A…
298 …{ArchSpec::eCore_arm_armv4, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
299 …{ArchSpec::eCore_arm_armv4t, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
300 …{ArchSpec::eCore_arm_armv6, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
301 …{ArchSpec::eCore_arm_armv6m, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
302 …{ArchSpec::eCore_arm_armv5, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
303 …{ArchSpec::eCore_arm_armv5e, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
304 …{ArchSpec::eCore_arm_armv5t, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
305 …{ArchSpec::eCore_arm_xscale, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_X…
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DDarwinAsmParser.cpp234 MachO::S_CSTRING_LITERALS); in parseSectionDirectiveCString()
239 MachO::S_4BYTE_LITERALS, 4); in parseSectionDirectiveLiteral4()
244 MachO::S_8BYTE_LITERALS, 8); in parseSectionDirectiveLiteral8()
249 MachO::S_16BYTE_LITERALS, 16); in parseSectionDirectiveLiteral16()
270 MachO::S_SYMBOL_STUBS | in parseSectionDirectiveSymbolStub()
271 MachO::S_ATTR_PURE_INSTRUCTIONS, in parseSectionDirectiveSymbolStub()
278 MachO::S_SYMBOL_STUBS | in parseSectionDirectivePICSymbolStub()
279 MachO::S_ATTR_PURE_INSTRUCTIONS, 0, 26); in parseSectionDirectivePICSymbolStub()
292 MachO::S_NON_LAZY_SYMBOL_POINTERS, 4); in parseSectionDirectiveNonLazySymbolPointers()
297 MachO::S_LAZY_SYMBOL_POINTERS, 4); in parseSectionDirectiveLazySymbolPointers()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp206 static void printDarwinSectionSizes(MachOObjectFile *MachO) { in printDarwinSectionSizes() argument
214 uint32_t Filetype = MachO->getHeader().filetype; in printDarwinSectionSizes()
217 for (const auto &Load : MachO->load_commands()) { in printDarwinSectionSizes()
218 if (Load.C.cmd == MachO::LC_SEGMENT_64) { in printDarwinSectionSizes()
219 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes()
229 MachO::section_64 Sec = MachO->getSection64(Load, J); in printDarwinSectionSizes()
230 if (Filetype == MachO::MH_OBJECT) in printDarwinSectionSizes()
244 } else if (Load.C.cmd == MachO::LC_SEGMENT) { in printDarwinSectionSizes()
245 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes()
256 MachO::section Sec = MachO->getSection(Load, J); in printDarwinSectionSizes()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp53 RelocType = unsigned(MachO::ARM64_RELOC_UNSIGNED); in getAArch64FixupKindMachOInfo()
69 RelocType = unsigned(MachO::ARM64_RELOC_POINTER_TO_GOT); in getAArch64FixupKindMachOInfo()
74 RelocType = unsigned(MachO::ARM64_RELOC_POINTER_TO_GOT); in getAArch64FixupKindMachOInfo()
87 RelocType = unsigned(MachO::ARM64_RELOC_PAGEOFF12); in getAArch64FixupKindMachOInfo()
90 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12); in getAArch64FixupKindMachOInfo()
93 RelocType = unsigned(MachO::ARM64_RELOC_TLVP_LOAD_PAGEOFF12); in getAArch64FixupKindMachOInfo()
104 RelocType = unsigned(MachO::ARM64_RELOC_PAGE21); in getAArch64FixupKindMachOInfo()
107 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGE21); in getAArch64FixupKindMachOInfo()
110 RelocType = unsigned(MachO::ARM64_RELOC_TLVP_LOAD_PAGE21); in getAArch64FixupKindMachOInfo()
117 RelocType = unsigned(MachO::ARM64_RELOC_BRANCH26); in getAArch64FixupKindMachOInfo()
[all …]

123456789