HomeSort by relevance Sort by last modified time
    Searched refs:MachO (Results 1 - 25 of 62) sorted by null

1 2 3

  /external/llvm/lib/MC/
MCAsmInfoDarwin.cpp 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_MOD_INIT_FUNC_POINTERS:
52 case MachO::S_MOD_TERM_FUNC_POINTERS:
53 case MachO::S_INTERPOSING
    [all...]
MCSectionMachO.cpp 1 //===- 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::S_THREAD_LOCAL_ZEROFILL)
    [all...]
MachObjectWriter.cpp 24 #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::LC_SEGMENT_64 : MachO::LC_SEGMENT)
    [all...]
MCObjectFileInfo.cpp 49 // MachO
54 MachO::S_COALESCED | MachO::S_ATTR_NO_TOC |
55 MachO::S_ATTR_STRIP_STATIC_SYMS | MachO::S_ATTR_LIVE_SUPPORT,
76 MachO::S_ATTR_PURE_INSTRUCTIONS,
86 MachO::S_THREAD_LOCAL_REGULAR,
90 MachO::S_THREAD_LOCAL_ZEROFILL,
96 MachO::S_THREAD_LOCAL_VARIABLES,
100 "__DATA", "__thread_init", MachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS
    [all...]
  /external/llvm/tools/llvm-readobj/
MachODumper.cpp 10 // This file implements the MachO-specific dumper for llvm-readobj.
21 #include "llvm/Object/MachO.h"
43 // 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::MH_OBJECT }
    [all...]
  /external/llvm/lib/Object/
MachOObjectFile.cpp 15 #include "llvm/Object/MachO.h"
24 #include "llvm/Support/MachO.h"
46 report_fatal_error("Malformed MachO file.");
51 MachO::swapStruct(Cmd);
64 MachO::swapStruct(Cmd);
74 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) :
75 sizeof(MachO::segment_command);
76 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) :
77 sizeof(MachO::section);
87 static MachO::nlist_bas
    [all...]
MachOUniversal.cpp 16 #include "llvm/Object/MachO.h"
29 void SwapStruct(MachO::fat_header &H) {
35 void SwapStruct(MachO::fat_arch &H) {
61 const char *HeaderPos = ParentData.begin() + sizeof(MachO::fat_header) +
62 Index * sizeof(MachO::fat_arch);
63 Header = getUniversalBinaryStruct<MachO::fat_arch>(HeaderPos);
109 if (Data.getBufferSize() < sizeof(MachO::fat_header)) {
115 MachO::fat_header H= getUniversalBinaryStruct<MachO::fat_header>(Buf.begin());
117 uint32_t MinSize = sizeof(MachO::fat_header)
    [all...]
  /external/llvm/tools/llvm-nm/
llvm-nm.cpp 28 #include "llvm/Object/MachO.h"
221 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj))
222 return MachO->is64Bit();
240 MachO::mach_header H;
241 MachO::mach_header_64 H_64;
242 uint32_t Filetype = MachO::MH_OBJECT;
249 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj);
253 NType |= MachO::N_EXT;
255 NType |= MachO::N_PEXT;
257 NType |= MachO::N_EXT | MachO::N_UNDF
    [all...]
  /external/llvm/lib/Target/ARM/MCTargetDesc/
ARMAsmBackendDarwin.h 13 #include "llvm/Support/MachO.h"
21 const MachO::CPUSubTypeARM Subtype;
23 const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
29 return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
ARMMachObjectWriter.cpp 24 #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::ARM_RELOC_HALF_SECTDIFF
    [all...]
  /external/llvm/tools/dsymutil/
MachODebugMapParser.cpp 14 #include "llvm/Object/MachO.h"
174 {MachO::N_GSYM, "N_GSYM"}, {MachO::N_FNAME, "N_FNAME"},
175 {MachO::N_FUN, "N_FUN"}, {MachO::N_STSYM, "N_STSYM"},
176 {MachO::N_LCSYM, "N_LCSYM"}, {MachO::N_BNSYM, "N_BNSYM"},
177 {MachO::N_PC, "N_PC"}, {MachO::N_AST, "N_AST"},
178 {MachO::N_OPT, "N_OPT"}, {MachO::N_RSYM, "N_RSYM"}
    [all...]
MachOUtils.cpp 20 #include "llvm/Object/MachO.h"
103 // Return a MachO::segment_command_64 that holds the same values as
104 // the passed MachO::segment_command. We do that to avoid having to
106 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) {
107 MachO::segment_command_64 Seg64;
127 MachO::segment_command_64 Segment;
128 if (LCI.C.cmd == MachO::LC_SEGMENT)
130 else if (LCI.C.cmd == MachO::LC_SEGMENT_64)
148 if ((NList.n_type & MachO::N_TYPE) == MachO::N_UNDF
    [all...]
  /external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
RuntimeDyldMachOARM.h 1 //===----- RuntimeDyldMachOARM.h ---- MachO/ARM specific code. ----*- C++ -*-=//
43 case MachO::ARM_RELOC_BR24: {
59 MachO::any_relocation_info RelInfo =
64 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF)
67 else if (RelType == MachO::GENERIC_RELOC_VANILLA)
81 if ((RE.RelType & 0xf) == MachO::ARM_RELOC_BR24)
113 case MachO::ARM_RELOC_VANILLA:
116 case MachO::ARM_RELOC_BR24: {
134 case MachO::ARM_RELOC_HALF_SECTDIFF: {
150 case MachO::ARM_THUMB_RELOC_BR22
    [all...]
RuntimeDyldMachOAArch64.h 1 //===-- 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::ARM64_RELOC_GOT_LOAD_PAGE21
    [all...]
RuntimeDyldMachOX86_64.h 1 //===-- RuntimeDyldMachOX86_64.h ---- MachO/X86_64 specific code. -*- C++ -*-=//
40 MachO::any_relocation_info RelInfo =
44 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR)
59 if (RE.RelType == MachO::X86_64_RELOC_GOT ||
60 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD)
90 case MachO::X86_64_RELOC_SIGNED_1:
91 case MachO::X86_64_RELOC_SIGNED_2:
92 case MachO::X86_64_RELOC_SIGNED_4:
93 case MachO::X86_64_RELOC_SIGNED:
94 case MachO::X86_64_RELOC_UNSIGNED
    [all...]
RuntimeDyldMachOI386.h 1 //===---- RuntimeDyldMachOI386.h ---- MachO/I386 specific code. ---*- C++ -*-=//
40 MachO::any_relocation_info RelInfo =
45 if (RelType == MachO::GENERIC_RELOC_SECTDIFF ||
46 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF)
49 else if (RelType == MachO::GENERIC_RELOC_VANILLA)
96 case MachO::GENERIC_RELOC_VANILLA:
99 case MachO::GENERIC_RELOC_SECTDIFF:
100 case MachO::GENERIC_RELOC_LOCAL_SECTDIFF: {
109 case MachO::GENERIC_RELOC_PB_LA_PTR:
133 MachO::any_relocation_info RE
    [all...]
  /external/llvm/include/llvm/Object/
MachO.h 1 //===- 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.
241 // MachO specific.
252 // MachO specific.
302 // In a MachO file, sections have a segment name. This is used in the .o
312 // MachO specific Info about relocations
    [all...]
  /external/llvm/lib/Target/PowerPC/MCTargetDesc/
PPCMachObjectWriter.cpp 21 #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::PPC_RELOC_LO16_SECTDIFF
    [all...]
  /external/llvm/lib/Target/AArch64/MCTargetDesc/
AArch64MachObjectWriter.cpp 23 #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::ARM64_RELOC_TLVP_LOAD_PAGE21)
    [all...]
  /external/llvm/tools/llvm-size/
llvm-size.cpp 18 #include "llvm/Object/MachO.h"
114 /// @brief Print the size of each Mach-O segment and section in @p MachO.
118 static void PrintDarwinSectionSizes(MachOObjectFile *MachO) {
126 uint32_t Filetype = MachO->getHeader().filetype;
129 for (const auto &Load : MachO->load_commands()) {
130 if (Load.C.cmd == MachO::LC_SEGMENT_64) {
131 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load);
141 MachO::section_64 Sec = MachO->getSection64(Load, J)
    [all...]
  /external/llvm/tools/llvm-objdump/
MachODump.cpp 10 // This file implements the MachO-specific dumper for llvm-objdump.
32 #include "llvm/Object/MachO.h"
42 #include "llvm/Support/MachO.h"
73 "(requires -macho)"));
78 "(requires -macho)"));
83 "Mach-O archives (requires -macho and "
89 "objects (requires -macho)"));
94 "(requires -macho)"));
99 "Mach-O objects (requires -macho)"));
104 "Mach-O objects (requires -macho)"));
    [all...]
  /external/llvm/lib/Target/X86/MCTargetDesc/
X86MachObjectWriter.cpp 22 #include "llvm/Support/MachO.h"
129 Type = MachO::X86_64_RELOC_UNSIGNED;
137 Type = MachO::X86_64_RELOC_BRANCH;
199 Type = MachO::X86_64_RELOC_UNSIGNED;
201 MachO::any_relocation_info MRE;
211 Type = MachO::X86_64_RELOC_SUBTRACTOR;
228 if (Section.hasAttribute(MachO::S_ATTR_DEBUG))
276 Type = MachO::X86_64_RELOC_GOT_LOAD;
278 Type = MachO::X86_64_RELOC_GOT;
280 Type = MachO::X86_64_RELOC_TLV
    [all...]
  /external/llvm/include/llvm/MC/
MCSectionMachO.h 1 //===- MCSectionMachO.h - MachO Machine Code Sections -----------*- C++ -*-===//
19 #include "llvm/Support/MachO.h"
58 MachO::SectionType getType() const {
59 return static_cast<MachO::SectionType>(TypeAndAttributes &
60 MachO::SECTION_TYPE);
StringTableBuilder.h 22 enum Kind { ELF, WinCOFF, MachO, RAW };
  /external/llvm/lib/MC/MCParser/
DarwinAsmParser.cpp 212 MachO::S_CSTRING_LITERALS);
216 MachO::S_4BYTE_LITERALS, 4);
220 MachO::S_8BYTE_LITERALS, 8);
224 MachO::S_16BYTE_LITERALS, 16);
240 MachO::S_SYMBOL_STUBS |
241 MachO::S_ATTR_PURE_INSTRUCTIONS,
247 MachO::S_SYMBOL_STUBS |
248 MachO::S_ATTR_PURE_INSTRUCTIONS, 0, 26);
258 MachO::S_NON_LAZY_SYMBOL_POINTERS, 4);
262 MachO::S_LAZY_SYMBOL_POINTERS, 4)
    [all...]

Completed in 397 milliseconds

1 2 3