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

1234

/external/llvm/lib/MC/
H A DMCAsmInfoDarwin.cpp29 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::S_MOD_INIT_FUNC_POINTERS:
53 case MachO
[all...]
H A DMCSectionMachO.cpp1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===//
21 } SectionTypeDescriptors[MachO::LAST_KNOWN_SECTION_TYPE+1] = {
57 { MachO::ENUM, ASMNAME, #ENUM },
104 MachO::SectionType SectionType = getType();
105 assert(SectionType <= MachO::LAST_KNOWN_SECTION_TYPE &&
118 unsigned SectionAttrs = TAA & MachO::SECTION_ATTRIBUTES;
157 return hasAttribute(MachO::S_ATTR_PURE_INSTRUCTIONS);
161 return (getType() == MachO::S_ZEROFILL ||
162 getType() == MachO::S_GB_ZEROFILL ||
163 getType() == MachO
[all...]
H A DMachObjectWriter.cpp24 #include "llvm/Support/MachO.h"
119 void MachObjectWriter::writeHeader(MachO::HeaderFileType Type,
126 Flags |= MachO::MH_SUBSECTIONS_VIA_SYMBOLS;
134 write32(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC);
148 (is64Bit() ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header)));
166 is64Bit() ? sizeof(MachO::segment_command_64):
167 sizeof(MachO::segment_command);
168 write32(is64Bit() ? MachO
[all...]
/external/llvm/tools/llvm-readobj/
H A DMachODumper.cpp10 // This file implements the MachO-specific dumper for llvm-readobj.
20 #include "llvm/Object/MachO.h"
42 // MachO-specific.
84 { "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
[all...]
/external/llvm/lib/Object/
H A DMachOObjectFile.cpp15 #include "llvm/Object/MachO.h"
24 #include "llvm/Support/MachO.h"
53 report_fatal_error("Malformed MachO file.");
58 MachO::swapStruct(Cmd);
71 MachO::swapStruct(Cmd);
81 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) :
82 sizeof(MachO::segment_command);
83 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) :
84 sizeof(MachO::section);
94 static MachO
[all...]
H A DMachOUniversal.cpp16 #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);
57 } else { // Parent->getMagic() == MachO::FAT_MAGIC_64
58 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) +
59 Index * sizeof(MachO::fat_arch_64);
60 Header64 = getUniversalBinaryStruct<MachO::fat_arch_64>(HeaderPos);
76 if (Parent->getMagic() == MachO
[all...]
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAsmBackendDarwin.h14 #include "llvm/Support/MachO.h"
20 const MachO::CPUSubTypeARM Subtype;
22 const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
27 return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
H A DARMMachObjectWriter.cpp24 #include "llvm/Support/MachO.h"
63 RelocType = unsigned(MachO::ARM_RELOC_VANILLA);
97 RelocType = unsigned(MachO::ARM_RELOC_BR24);
105 RelocType = unsigned(MachO::ARM_THUMB_RELOC_BR22);
119 RelocType = unsigned(MachO::ARM_RELOC_HALF);
123 RelocType = unsigned(MachO::ARM_RELOC_HALF);
128 RelocType = unsigned(MachO::ARM_RELOC_HALF);
132 RelocType = unsigned(MachO::ARM_RELOC_HALF);
148 unsigned Type = MachO::ARM_RELOC_HALF;
176 Type = MachO
[all...]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOARM.h1 //===----- RuntimeDyldMachOARM.h ---- MachO/ARM specific code. ----*- C++ -*-=//
44 case MachO::ARM_RELOC_BR24: {
60 MachO::any_relocation_info RelInfo =
65 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF)
68 else if (RelType == MachO::GENERIC_RELOC_VANILLA)
76 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PAIR);
77 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_SECTDIFF);
78 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_LOCAL_SECTDIFF);
79 UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PB_LA_PTR);
80 UNIMPLEMENTED_RELOC(MachO
221 const MachOObjectFile &MachO = local
[all...]
H A DRuntimeDyldMachOAArch64.h1 //===-- RuntimeDyldMachOAArch64.h -- MachO/AArch64 specific code. -*- C++ -*-=//
44 case MachO::ARM64_RELOC_UNSIGNED:
47 case MachO::ARM64_RELOC_BRANCH26:
48 case MachO::ARM64_RELOC_PAGE21:
49 case MachO::ARM64_RELOC_PAGEOFF12:
50 case MachO::ARM64_RELOC_GOT_LOAD_PAGE21:
51 case MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12:
61 case MachO::ARM64_RELOC_UNSIGNED:
68 case MachO::ARM64_RELOC_BRANCH26: {
80 case MachO
[all...]
H A DRuntimeDyldMachOX86_64.h1 //===-- RuntimeDyldMachOX86_64.h ---- MachO/X86_64 specific code. -*- C++ -*-=//
41 MachO::any_relocation_info RelInfo =
45 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR)
64 UNIMPLEMENTED_RELOC(MachO::X86_64_RELOC_TLV);
66 if (RelType > MachO::X86_64_RELOC_TLV)
67 return make_error<RuntimeDyldError>(("MachO X86_64 relocation type " +
73 if (RE.RelType == MachO::X86_64_RELOC_GOT ||
74 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD)
104 case MachO::X86_64_RELOC_SIGNED_1:
105 case MachO
[all...]
H A DRuntimeDyldMachOI386.h1 //===---- RuntimeDyldMachOI386.h ---- MachO/I386 specific code. ---*- C++ -*-=//
41 MachO::any_relocation_info RelInfo =
46 if (RelType == MachO::GENERIC_RELOC_SECTDIFF ||
47 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF)
50 else if (RelType == MachO::GENERIC_RELOC_VANILLA)
57 UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_PAIR);
58 UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_PB_LA_PTR);
59 UNIMPLEMENTED_RELOC(MachO::GENERIC_RELOC_TLV);
61 if (RelType > MachO::GENERIC_RELOC_TLV)
62 return make_error<RuntimeDyldError>(("MachO I38
[all...]
/external/llvm/tools/dsymutil/
H A DMachODebugMapParser.cpp14 #include "llvm/Object/MachO.h"
172 {MachO::N_GSYM, "N_GSYM"}, {MachO::N_FNAME, "N_FNAME"},
173 {MachO::N_FUN, "N_FUN"}, {MachO::N_STSYM, "N_STSYM"},
174 {MachO::N_LCSYM, "N_LCSYM"}, {MachO::N_BNSYM, "N_BNSYM"},
175 {MachO::N_PC, "N_PC"}, {MachO::N_AST, "N_AST"},
176 {MachO
[all...]
H A DMachOUtils.cpp21 #include "llvm/Object/MachO.h"
104 // Return a MachO::segment_command_64 that holds the same values as
105 // the passed MachO::segment_command. We do that to avoid having to
107 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) {
108 MachO::segment_command_64 Seg64;
128 MachO::segment_command_64 Segment;
129 if (LCI.C.cmd == MachO::LC_SEGMENT)
131 else if (LCI.C.cmd == MachO::LC_SEGMENT_64)
149 if ((NList.n_type & MachO
[all...]
/external/llvm/include/llvm/Object/
H A DMachO.h1 //===- MachO.h - MachO object file implementation ---------------*- C++ -*-===//
11 // interface for MachO files.
22 #include "llvm/Support/MachO.h"
191 MachO::load_command C; // The command itself.
204 // MachO specific.
243 // MachO specific.
254 // MachO specific.
306 // In a MachO file, sections have a segment name. This is used in the .o
316 // MachO specifi
[all...]
H A DMachOUniversal.h21 #include "llvm/Object/MachO.h"
22 #include "llvm/Support/MachO.h"
40 MachO::fat_arch Header;
41 MachO::fat_arch_64 Header64;
57 if (Parent->getMagic() == MachO::FAT_MAGIC)
59 else // Parent->getMagic() == MachO::FAT_MAGIC_64
63 if (Parent->getMagic() == MachO::FAT_MAGIC)
65 else // Parent->getMagic() == MachO::FAT_MAGIC_64
69 if (Parent->getMagic() == MachO::FAT_MAGIC)
71 else // Parent->getMagic() == MachO
[all...]
/external/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp29 #include "llvm/Object/MachO.h"
277 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj))
278 return MachO->is64Bit();
296 MachO::mach_header H;
297 MachO::mach_header_64 H_64;
298 uint32_t Filetype = MachO::MH_OBJECT;
305 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); local
309 NType |= MachO::N_EXT;
311 NType |= MachO::N_PEXT;
313 NType |= MachO
568 darwinPrintStab(MachOObjectFile *MachO, SymbolListT::iterator I) argument
709 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); local
986 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); local
1053 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(O); local
[all...]
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp21 #include "llvm/Support/MachO.h"
48 report_fatal_error("Relocation emission for MachO/PPC64 unimplemented.");
91 unsigned Type = MachO::GENERIC_RELOC_VANILLA;
97 Type = MachO::PPC_RELOC_BR24; // R_PPC_REL24
100 Type = MachO::PPC_RELOC_BR14;
107 Type = MachO::PPC_RELOC_HA16;
110 Type = MachO::PPC_RELOC_LO16;
113 Type = MachO::PPC_RELOC_HI16;
127 Type = MachO::PPC_RELOC_HA16_SECTDIFF;
130 Type = MachO
[all...]
/external/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp1 //===- MachOYAML.cpp - MachO YAMLIO implementation ------------------------===//
10 // This file defines classes for handling the YAML representation of MachO.
17 #include "llvm/Support/MachO.h"
83 if (FileHdr.magic == MachO::MH_MAGIC_64 ||
84 FileHdr.magic == MachO::MH_CIGAM_64)
187 void mapLoadCommandData<MachO::segment_command>(
193 void mapLoadCommandData<MachO::segment_command_64>(
199 void mapLoadCommandData<MachO::dylib_command>(
205 void mapLoadCommandData<MachO::rpath_command>(
211 void mapLoadCommandData<MachO
[all...]
H A DObjectYAML.cpp27 if (ObjectFile.MachO)
28 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO);
40 ObjectFile.MachO.reset(new MachOYAML::Object());
41 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO);
/external/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp44 case MachO::LCName: \
46 sizeof(MachO::LCStruct)); \
48 MachO::swapStruct(LC.Data.LCStruct##_data); \
49 EndPtr = processLoadCommandData<MachO::LCStruct>(LC, LoadCmd); \
73 template <> MachOYAML::Section constructSection(MachO::section Sec) {
79 template <> MachOYAML::Section constructSection(MachO::section_64 Sec) {
97 MachO::swapStruct(Sec);
114 const char *MachODumper::processLoadCommandData<MachO::segment_command>(
117 return extractSections<MachO::section, MachO
[all...]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp23 #include "llvm/Support/MachO.h"
46 RelocType = unsigned(MachO::ARM64_RELOC_UNSIGNED);
62 RelocType = unsigned(MachO::ARM64_RELOC_POINTER_TO_GOT);
67 RelocType = unsigned(MachO::ARM64_RELOC_POINTER_TO_GOT);
80 RelocType = unsigned(MachO::ARM64_RELOC_PAGEOFF12);
83 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12);
86 RelocType = unsigned(MachO::ARM64_RELOC_TLVP_LOAD_PAGEOFF12);
99 RelocType = unsigned(MachO::ARM64_RELOC_PAGE21);
102 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGE21);
105 RelocType = unsigned(MachO
[all...]
/external/llvm/tools/yaml2obj/
H A Dyaml2macho.cpp19 #include "llvm/Support/MachO.h"
32 is64Bit = Obj.Header.magic == MachO::MH_MAGIC_64 ||
33 Obj.Header.magic == MachO::MH_CIGAM_64;
34 memset(reinterpret_cast<void *>(&Header), 0, sizeof(MachO::mach_header_64));
62 MachO::mach_header_64 Header;
87 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
116 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC,
120 auto TempSec = constructSection<MachO::section>(Sec);
122 sizeof(MachO
[all...]
/external/llvm/tools/llvm-size/
H A Dllvm-size.cpp19 #include "llvm/Object/MachO.h"
200 /// Print the size of each Mach-O segment and section in @p MachO.
204 static void printDarwinSectionSizes(MachOObjectFile *MachO) { argument
212 uint32_t Filetype = MachO->getHeader().filetype;
215 for (const auto &Load : MachO->load_commands()) {
216 if (Load.C.cmd == MachO::LC_SEGMENT_64) {
217 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load);
227 MachO::section_64 Sec = MachO
279 printDarwinSegmentSizes(MachOObjectFile *MachO) argument
362 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj); local
489 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
539 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
573 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
611 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
664 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
698 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
738 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
774 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
809 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); local
[all...]
/external/llvm/include/llvm/ObjectYAML/
H A DMachOYAML.h20 #include "llvm/Support/MachO.h"
53 llvm::MachO::macho_load_command Data;
68 MachO::RebaseOpcode Opcode;
74 MachO::BindOpcode Opcode;
200 io.enumCase(value, #LCName, MachO::LCName);
202 template <> struct ScalarEnumerationTraits<MachO::LoadCommandType> {
203 static void enumeration(IO &io, MachO::LoadCommandType &value) {
204 #include "llvm/Support/MachO.def"
209 #define ENUM_CASE(Enum) io.enumCase(value, #Enum, MachO::Enum);
211 template <> struct ScalarEnumerationTraits<MachO
[all...]

Completed in 719 milliseconds

1234