Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/tools/llvm-readobj/
H A DMachODumper.cpp86 { "Magic", MachO::MH_MAGIC },
87 { "Cigam", MachO::MH_CIGAM },
403 case MachO::CPU_TYPE_X86: in printFileHeaders()
406 case MachO::CPU_TYPE_X86_64: in printFileHeaders()
409 case MachO::CPU_TYPE_ARM: in printFileHeaders()
412 case MachO::CPU_TYPE_POWERPC: in printFileHeaders()
415 case MachO::CPU_TYPE_SPARC: in printFileHeaders()
418 case MachO::CPU_TYPE_ARM64: in printFileHeaders()
421 case MachO::CPU_TYPE_POWERPC64: in printFileHeaders()
743 case MachO::LC_BUILD_VERSION: in printMachOVersionMin()
[all …]
/freebsd-12.1/contrib/llvm/lib/Object/
H A DMachOObjectFile.cpp1668 (NType & MachO::N_TYPE) == MachO::N_SECT) { in checkSymbolTable()
1674 (NType & MachO::N_TYPE) == MachO::N_INDR) { in checkSymbolTable()
1680 if ((Flags & MachO::MH_TWOLEVEL) == MachO::MH_TWOLEVEL && in checkSymbolTable()
1682 (NType & MachO::N_TYPE) == MachO::N_PBUD)) { in checkSymbolTable()
1744 if ((Entry.n_type & MachO::N_TYPE) != MachO::N_INDR) in getIndirectName()
1807 if ((MachOType & MachO::N_TYPE) == MachO::N_INDR) in getSymbolFlags()
1815 if ((MachOType & MachO::N_TYPE) == MachO::N_UNDF) { in getSymbolFlags()
1826 if (MachOFlags & (MachO::N_WEAK_REF | MachO::N_WEAK_DEF)) in getSymbolFlags()
1832 if ((MachOType & MachO::N_TYPE) == MachO::N_ABS) in getSymbolFlags()
4252 MachO::nlist
[all …]
H A DMachOUniversal.cpp51 if (Parent->getMagic() == MachO::FAT_MAGIC) { in ObjectForArch()
53 Index * sizeof(MachO::fat_arch); in ObjectForArch()
72 if (Parent->getMagic() == MachO::FAT_MAGIC) { in getAsObjectFile()
92 if (Parent->getMagic() == MachO::FAT_MAGIC) in getAsArchive()
117 if (Data.getBufferSize() < sizeof(MachO::fat_header)) { in MachOUniversalBinary()
125 MachO::fat_header H = in MachOUniversalBinary()
133 uint32_t MinSize = sizeof(MachO::fat_header); in MachOUniversalBinary()
134 if (Magic == MachO::FAT_MAGIC) in MachOUniversalBinary()
135 MinSize += sizeof(MachO::fat_arch) * NumberOfObjects; in MachOUniversalBinary()
136 else if (Magic == MachO::FAT_MAGIC_64) in MachOUniversalBinary()
[all …]
/freebsd-12.1/contrib/llvm/tools/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileYAML.cpp38 using namespace llvm::MachO;
165 llvm::MachO::MH_TWOLEVEL); in bitset()
176 llvm::MachO::S_REGULAR); in enumeration()
178 llvm::MachO::S_ZEROFILL); in enumeration()
198 llvm::MachO::S_COALESCED); in enumeration()
200 llvm::MachO::S_GB_ZEROFILL); in enumeration()
202 llvm::MachO::S_INTERPOSING); in enumeration()
206 llvm::MachO::S_DTRACE_DOF); in enumeration()
468 if (sym.type == llvm::MachO::N_UNDF) { in mapping()
497 value = llvm::MachO::VM_PROT_READ; in input()
[all …]
H A DExecutableAtoms.h76 case llvm::MachO::MH_OBJECT: in MachHeaderAliasFile()
79 case llvm::MachO::MH_EXECUTE: in MachHeaderAliasFile()
84 case llvm::MachO::MH_FVMLIB: in MachHeaderAliasFile()
86 case llvm::MachO::MH_CORE: in MachHeaderAliasFile()
88 case llvm::MachO::MH_PRELOAD: in MachHeaderAliasFile()
90 case llvm::MachO::MH_DYLIB: in MachHeaderAliasFile()
94 case llvm::MachO::MH_DYLINKER: in MachHeaderAliasFile()
98 case llvm::MachO::MH_BUNDLE: in MachHeaderAliasFile()
102 case llvm::MachO::MH_DYLIB_STUB: in MachHeaderAliasFile()
104 case llvm::MachO::MH_DSYM: in MachHeaderAliasFile()
[all …]
H A DMachONormalizedFile.h63 using llvm::MachO::HeaderFileType;
64 using llvm::MachO::BindType;
65 using llvm::MachO::RebaseType;
66 using llvm::MachO::NListType;
67 using llvm::MachO::RelocationInfoType;
68 using llvm::MachO::SectionType;
69 using llvm::MachO::LoadCommandType;
70 using llvm::MachO::ExportSymbolKind;
71 using llvm::MachO::DataRegionType;
115 Section() : type(llvm::MachO::S_REGULAR), in Section()
[all …]
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h53 case MachO::ARM64_RELOC_UNSIGNED: { in decodeAddend()
66 case MachO::ARM64_RELOC_BRANCH26: in decodeAddend()
67 case MachO::ARM64_RELOC_PAGE21: in decodeAddend()
68 case MachO::ARM64_RELOC_PAGEOFF12: in decodeAddend()
81 case MachO::ARM64_RELOC_UNSIGNED: in decodeAddend()
103 case MachO::ARM64_RELOC_PAGE21: { in decodeAddend()
163 case MachO::ARM64_RELOC_UNSIGNED: in encodeAddend()
166 case MachO::ARM64_RELOC_BRANCH26: in encodeAddend()
167 case MachO::ARM64_RELOC_PAGE21: in encodeAddend()
431 case MachO::ARM64_RELOC_ADDEND: in resolveRelocation()
[all …]
H A DRuntimeDyldMachOARM.h71 case MachO::ARM_RELOC_BR24: { in decodeAddend()
78 case MachO::ARM_THUMB_RELOC_BR22: { in decodeAddend()
108 MachO::any_relocation_info RelInfo = in processRelocationRef()
190 if (RE.RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef()
220 case MachO::ARM_THUMB_RELOC_BR22: { in resolveRelocation()
237 case MachO::ARM_RELOC_VANILLA: in resolveRelocation()
242 case MachO::ARM_RELOC_BR24: { in resolveRelocation()
260 case MachO::ARM_RELOC_HALF_SECTDIFF: { in resolveRelocation()
346 const MachOObjectFile &MachO = in processHALFSECTDIFFRelocation() local
348 MachO::any_relocation_info RE = in processHALFSECTDIFFRelocation()
[all …]
H A DRuntimeDyldMachOX86_64.h41 MachO::any_relocation_info RelInfo = in processRelocationRef()
66 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef()
104 case MachO::X86_64_RELOC_SIGNED_1: in resolveRelocation()
105 case MachO::X86_64_RELOC_SIGNED_2: in resolveRelocation()
106 case MachO::X86_64_RELOC_SIGNED_4: in resolveRelocation()
107 case MachO::X86_64_RELOC_SIGNED: in resolveRelocation()
108 case MachO::X86_64_RELOC_UNSIGNED: in resolveRelocation()
109 case MachO::X86_64_RELOC_BRANCH: in resolveRelocation()
112 case MachO::X86_64_RELOC_SUBTRACTOR: { in resolveRelocation()
164 MachO::any_relocation_info RE = in processSubtractRelocation()
[all …]
H A DRuntimeDyldMachOI386.h41 MachO::any_relocation_info RelInfo = in processRelocationRef()
46 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef()
50 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
57 UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_PAIR); in processRelocationRef()
59 UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_TLV); in processRelocationRef()
61 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef()
111 case MachO::GENERIC_RELOC_VANILLA: in resolveRelocation()
114 case MachO::GENERIC_RELOC_SECTDIFF: in resolveRelocation()
115 case MachO::GENERIC_RELOC_LOCAL_SECTDIFF: { in resolveRelocation()
149 MachO::any_relocation_info RE = in processSECTDIFFRelocation()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp349 NType |= MachO::N_EXT | MachO::N_UNDF; in darwinPrintSymbol()
419 if ((NType & MachO::N_TYPE) == MachO::N_INDR) { in darwinPrintSymbol()
438 if ((NType & MachO::N_TYPE) == MachO::N_INDR) in darwinPrintSymbol()
452 if ((NType & MachO::N_TYPE) == MachO::N_PBUD) in darwinPrintSymbol()
549 ((NType & MachO::N_TYPE) != MachO::N_UNDF) && in darwinPrintSymbol()
554 ((NType & MachO::N_TYPE) != MachO::N_UNDF) && in darwinPrintSymbol()
561 if ((NType & MachO::N_TYPE) == MachO::N_INDR) { in darwinPrintSymbol()
580 (NType & MachO::N_TYPE) == MachO::N_PBUD)) { in darwinPrintSymbol()
1445 B.NType = MachO::N_EXT | MachO::N_UNDF; in dumpSymbolNamesFromObject()
1505 L.NType = MachO::N_EXT | MachO::N_UNDF; in dumpSymbolNamesFromObject()
[all …]
/freebsd-12.1/contrib/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp93 if (FileHdr.magic == MachO::MH_MAGIC_64 || in mapping()
94 FileHdr.magic == MachO::MH_CIGAM_64) in mapping()
206 void mapLoadCommandData<MachO::segment_command>( in mapLoadCommandData()
218 void mapLoadCommandData<MachO::dylib_command>( in mapLoadCommandData()
224 void mapLoadCommandData<MachO::rpath_command>( in mapLoadCommandData()
243 MachO::LoadCommandType TempCmd = static_cast<MachO::LoadCommandType>( in mapping()
294 IO &IO, MachO::build_tool_version &tool) { in mapping()
299 void MappingTraits<MachO::dylib>::mapping(IO &IO, MachO::dylib &DylibStruct) { in mapping()
307 IO &IO, MachO::dylib_command &LoadCommand) { in mapping()
365 void MappingTraits<MachO::fvmlib>::mapping(IO &IO, MachO::fvmlib &FVMLib) { in mapping()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Object/
H A DMachO.h503 MachO::segment_command
505 MachO::segment_command_64
511 MachO::note_command
515 MachO::build_tool_version
517 MachO::dylib_command
519 MachO::dyld_info_command
521 MachO::dylinker_command
523 MachO::uuid_command
525 MachO::rpath_command
543 MachO::routines_command
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp232 MachO::any_relocation_info MRE; in RecordARMScatteredHalfRelocation()
238 MachO::R_SCATTERED); in RecordARMScatteredHalfRelocation()
243 MachO::any_relocation_info MRE; in RecordARMScatteredHalfRelocation()
249 MachO::R_SCATTERED); in RecordARMScatteredHalfRelocation()
302 Type = MachO::ARM_RELOC_SECTDIFF; in RecordARMScatteredRelocation()
310 MachO::any_relocation_info MRE; in RecordARMScatteredRelocation()
320 MachO::any_relocation_info MRE; in RecordARMScatteredRelocation()
325 MachO::R_SCATTERED); in RecordARMScatteredRelocation()
344 case MachO::ARM_RELOC_BR24: in requiresExternRelocation()
358 case MachO::ARM_THUMB_RELOC_BR22: in requiresExternRelocation()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-objdump/
H A DMachODump.cpp250 case MachO::DICE_KIND_DATA: in DumpDataInCode()
378 (MachO::INDIRECT_SYMBOL_LOCAL | MachO::INDIRECT_SYMBOL_ABS)) { in PrintIndirectSymbolTable()
1353 if (cputype == MachO::CPU_TYPE_I386 || cputype == MachO::CPU_TYPE_X86_64) { in DumpRawSectionContents()
1546 MachO::mach_header H; in checkMachOAndArchFlags()
1550 if (MachO->is64Bit()) { in checkMachOAndArchFlags()
1838 (cpusubtype & MachO::CPU_SUBTYPE_MASK) == MachO::CPU_SUBTYPE_LIB64) in printMachOUniversalHeaders()
7952 if ((cpusubtype & MachO::CPU_SUBTYPE_MASK) == MachO::CPU_SUBTYPE_LIB64) { in PrintMachHeader()
7968 case MachO::MH_CORE: in PrintMachHeader()
7986 case MachO::MH_DSYM: in PrintMachHeader()
8159 ~(MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | in PrintSegmentCommand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp100 Type = MachO::PPC_RELOC_BR14; in getRelocType()
107 Type = MachO::PPC_RELOC_HA16; in getRelocType()
110 Type = MachO::PPC_RELOC_LO16; in getRelocType()
113 Type = MachO::PPC_RELOC_HI16; in getRelocType()
232 if (Type == MachO::PPC_RELOC_SECTDIFF || in recordScatteredRelocation()
256 case MachO::PPC_RELOC_LO16_SECTDIFF: in recordScatteredRelocation()
265 case MachO::PPC_RELOC_HA16_SECTDIFF: in recordScatteredRelocation()
270 case MachO::PPC_RELOC_HI16_SECTDIFF: in recordScatteredRelocation()
279 MachO::any_relocation_info MRE; in recordScatteredRelocation()
294 MachO::any_relocation_info MRE; in recordScatteredRelocation()
[all …]
/freebsd-12.1/contrib/llvm/lib/MC/
H A DMachObjectWriter.cpp147 W.write<uint32_t>(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC); in writeHeader()
186 W.write<uint32_t>(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT); in writeSegmentLoadCommand()
255 (is64Bit() ? sizeof(MachO::section_64) : sizeof(MachO::section))); in writeSection()
361 Type = MachO::N_INDR; in writeNlist()
363 Type = MachO::N_UNDF; in writeNlist()
365 Type = MachO::N_ABS; in writeNlist()
367 Type = MachO::N_SECT; in writeNlist()
372 Type |= MachO::N_PEXT; in writeNlist()
376 Type |= MachO::N_EXT; in writeNlist()
755 sizeof(MachO::segment_command) + NumSections * sizeof(MachO::section); in writeObject()
[all …]
H A DMCAsmInfoDarwin.cpp30 if (SMO.getType() == MachO::S_CSTRING_LITERALS) in isSectionAtomizableBySymbols()
46 case MachO::S_4BYTE_LITERALS: in isSectionAtomizableBySymbols()
47 case MachO::S_8BYTE_LITERALS: in isSectionAtomizableBySymbols()
48 case MachO::S_16BYTE_LITERALS: in isSectionAtomizableBySymbols()
49 case MachO::S_LITERAL_POINTERS: in isSectionAtomizableBySymbols()
50 case MachO::S_NON_LAZY_SYMBOL_POINTERS: in isSectionAtomizableBySymbols()
51 case MachO::S_LAZY_SYMBOL_POINTERS: in isSectionAtomizableBySymbols()
52 case MachO::S_THREAD_LOCAL_VARIABLE_POINTERS: in isSectionAtomizableBySymbols()
53 case MachO::S_MOD_INIT_FUNC_POINTERS: in isSectionAtomizableBySymbols()
54 case MachO::S_MOD_TERM_FUNC_POINTERS: in isSectionAtomizableBySymbols()
[all …]
H A DMCObjectFileInfo.cpp56 MachO::S_COALESCED | MachO::S_ATTR_NO_TOC | in initMachOMCObjectFileInfo()
57 MachO::S_ATTR_STRIP_STATIC_SYMS | MachO::S_ATTR_LIVE_SUPPORT, in initMachOMCObjectFileInfo()
103 MachO::S_CSTRING_LITERALS, in initMachOMCObjectFileInfo()
110 MachO::S_4BYTE_LITERALS, in initMachOMCObjectFileInfo()
114 MachO::S_8BYTE_LITERALS, in initMachOMCObjectFileInfo()
119 MachO::S_16BYTE_LITERALS, in initMachOMCObjectFileInfo()
141 MachO::S_COALESCED | in initMachOMCObjectFileInfo()
146 MachO::S_COALESCED, in initMachOMCObjectFileInfo()
160 MachO::S_ZEROFILL, in initMachOMCObjectFileInfo()
785 case Triple::MachO: in InitMCObjectFileInfo()
[all …]
H A DMCSectionMachO.cpp21 } SectionTypeDescriptors[MachO::LAST_KNOWN_SECTION_TYPE + 1] = {
116 MachO::SectionType SectionType = getType(); in PrintSwitchToSection()
117 assert(SectionType <= MachO::LAST_KNOWN_SECTION_TYPE && in PrintSwitchToSection()
130 unsigned SectionAttrs = TAA & MachO::SECTION_ATTRIBUTES; in PrintSwitchToSection()
169 return hasAttribute(MachO::S_ATTR_PURE_INSTRUCTIONS); in UseCodeAlign()
173 return (getType() == MachO::S_ZEROFILL || in isVirtualSection()
174 getType() == MachO::S_GB_ZEROFILL || in isVirtualSection()
175 getType() == MachO::S_THREAD_LOCAL_ZEROFILL); in isVirtualSection()
241 if (TAA == MachO::S_SYMBOL_STUBS) in ParseSectionSpecifier()
266 if (TAA == MachO::S_SYMBOL_STUBS) in ParseSectionSpecifier()
[all …]
/freebsd-12.1/contrib/llvm/lib/MC/MCParser/
H A DDarwinAsmParser.cpp271 MachO::S_SYMBOL_STUBS | in parseSectionDirectiveSymbolStub()
279 MachO::S_SYMBOL_STUBS | in parseSectionDirectivePICSymbolStub()
482 bool isText = TAA & MachO::S_ATTR_PURE_INSTRUCTIONS; in parseSectionSwitch()
557 SectionType != MachO::S_LAZY_SYMBOL_POINTERS && in parseDirectiveIndirectSymbol()
559 SectionType != MachO::S_SYMBOL_STUBS) in parseDirectiveIndirectSymbol()
1148 case MachO::PLATFORM_IOS: return Triple::IOS; in getOSTypeFromPlatform()
1149 case MachO::PLATFORM_TVOS: return Triple::TvOS; in getOSTypeFromPlatform()
1168 .Case("macos", MachO::PLATFORM_MACOS) in parseBuildVersion()
1169 .Case("ios", MachO::PLATFORM_IOS) in parseBuildVersion()
1170 .Case("tvos", MachO::PLATFORM_TVOS) in parseBuildVersion()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp128 if (Section.hasAttribute(MachO::S_ATTR_DEBUG)) in canUseLocalRelocation()
210 Type = MachO::ARM64_RELOC_UNSIGNED; in recordRelocation()
237 MachO::any_relocation_info MRE; in recordRelocation()
292 Type = MachO::ARM64_RELOC_UNSIGNED; in recordRelocation()
294 MachO::any_relocation_info MRE; in recordRelocation()
300 Type = MachO::ARM64_RELOC_SUBTRACTOR; in recordRelocation()
373 if ((Type == MachO::ARM64_RELOC_BRANCH26 || in recordRelocation()
374 Type == MachO::ARM64_RELOC_PAGE21 || in recordRelocation()
379 MachO::any_relocation_info MRE; in recordRelocation()
386 Type = MachO::ARM64_RELOC_ADDEND; in recordRelocation()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/ObjectYAML/
H A DMachOYAML.h59 llvm::MachO::macho_load_command Data;
61 std::vector<MachO::build_tool_version> Tools;
76 MachO::RebaseOpcode Opcode;
82 MachO::BindOpcode Opcode;
213 io.enumCase(value, #LCName, MachO::LCName); in LLVM_YAML_IS_SEQUENCE_VECTOR()
287 template <> struct MappingTraits<MachO::dylib> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
288 static void mapping(IO &IO, MachO::dylib &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
291 template <> struct MappingTraits<MachO::fvmlib> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
292 static void mapping(IO &IO, MachO::fvmlib &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
295 template <> struct MappingTraits<MachO::section> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp135 Type = MachO::X86_64_RELOC_UNSIGNED; in RecordX86_64Relocation()
143 Type = MachO::X86_64_RELOC_BRANCH; in RecordX86_64Relocation()
206 MachO::any_relocation_info MRE; in RecordX86_64Relocation()
325 Type = MachO::X86_64_RELOC_GOT; in RecordX86_64Relocation()
331 Type = MachO::X86_64_RELOC_GOT; in RecordX86_64Relocation()
358 MachO::any_relocation_info MRE; in RecordX86_64Relocation()
432 MachO::any_relocation_info MRE; in recordScatteredRelocation()
454 MachO::any_relocation_info MRE; in recordScatteredRelocation()
459 MachO::R_SCATTERED); in recordScatteredRelocation()
498 MachO::any_relocation_info MRE; in recordTLVPRelocation()
[all …]
/freebsd-12.1/contrib/llvm/tools/lld/lib/Driver/
H A DDarwinLdDriver.cpp341 llvm::MachO::HeaderFileType fileType = llvm::MachO::MH_EXECUTE; in parse()
733 case llvm::MachO::MH_EXECUTE: in parse()
760 case llvm::MachO::MH_PRELOAD: in parse()
762 case llvm::MachO::MH_DYLIB: in parse()
763 case llvm::MachO::MH_BUNDLE: in parse()
807 case llvm::MachO::MH_DYLIB: in parse()
815 case llvm::MachO::MH_DSYM: in parse()
855 case llvm::MachO::MH_DYLIB: in parse()
863 case llvm::MachO::MH_DSYM: in parse()
904 case llvm::MachO::MH_DYLIB: in parse()
[all …]

1234