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

1 2 3

  /external/llvm/lib/Object/
MachOObjectFile.cpp 15 #include "llvm/Object/MachO.h"
50 void SwapStruct(MachO::any_relocation_info &H) {
56 void SwapStruct(MachO::load_command &L) {
68 void SwapStruct(MachO::section &S) {
81 void SwapStruct(MachO::section_64 &S) {
95 void SwapStruct(MachO::nlist &S) {
102 void SwapStruct(MachO::nlist_64 &S) {
109 void SwapStruct(MachO::mach_header &H) {
120 void SwapStruct(MachO::mach_header_64 &H) {
132 void SwapStruct(MachO::symtab_command &C)
    [all...]
MachOUniversal.cpp 15 #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);
116 if (Data->getBufferSize() < sizeof(MachO::fat_header)) {
122 MachO::fat_header H= getUniversalBinaryStruct<MachO::fat_header>(Buf.begin());
124 uint32_t MinSize = sizeof(MachO::fat_header)
    [all...]
  /external/llvm/lib/ExecutionEngine/RuntimeDyld/
RuntimeDyldMachO.cpp 83 ((MachO::section_64 *)data)->addr = Addr;
85 ((MachO::section *)data)->addr = Addr;
108 ((MachO::nlist_64 *)data)->n_value = Addr;
110 ((MachO::nlist *)data)->n_value = Addr;
125 bool is64 = (magic == MachO::MH_MAGIC_64);
126 assert((magic == MachO::MH_MAGIC_64 || magic == MachO::MH_MAGIC) &&
127 "Unrecognized Macho Magic");
140 bool is64 = (magic == MachO::MH_MAGIC_64);
141 assert((magic == MachO::MH_MAGIC_64 || magic == MachO::MH_MAGIC) &
    [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"
56 MachO::load_command C; // The command itself.
66 // MachO specific.
126 // MachO specific.
135 // MachO specific.
157 // In a MachO file, sections have a segment name. This is used in the .o
167 // MachO specific Info about relocations
    [all...]
  /external/llvm/lib/Target/PowerPC/MCTargetDesc/
PPCMachObjectWriter.cpp 21 #include "llvm/Support/MachO.h"
49 report_fatal_error("Relocation emission for MachO/PPC64 unimplemented.");
92 unsigned Type = MachO::GENERIC_RELOC_VANILLA;
98 Type = MachO::PPC_RELOC_BR24; // R_PPC_REL24
101 Type = MachO::PPC_RELOC_BR14;
108 Type = MachO::PPC_RELOC_HA16;
111 Type = MachO::PPC_RELOC_LO16;
114 Type = MachO::PPC_RELOC_HI16;
128 Type = MachO::PPC_RELOC_HA16_SECTDIFF;
131 Type = MachO::PPC_RELOC_LO16_SECTDIFF
    [all...]
  /external/llvm/lib/MC/
MCSectionMachO.cpp 1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===//
21 } SectionTypeDescriptors[MachO::LAST_KNOWN_SECTION_TYPE+1] = {
57 { MachO::ENUM, ASMNAME, #ENUM },
102 MachO::SectionType SectionType = getType();
103 assert(SectionType <= MachO::LAST_KNOWN_SECTION_TYPE &&
116 unsigned SectionAttrs = TAA & MachO::SECTION_ATTRIBUTES;
155 return hasAttribute(MachO::S_ATTR_PURE_INSTRUCTIONS);
159 return (getType() == MachO::S_ZEROFILL ||
160 getType() == MachO::S_GB_ZEROFILL ||
161 getType() == MachO::S_THREAD_LOCAL_ZEROFILL)
    [all...]
MachObjectWriter.cpp 25 #include "llvm/Support/MachO.h"
132 Flags |= MachO::MH_SUBSECTIONS_VIA_SYMBOLS;
140 Write32(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC);
145 Write32(MachO::MH_OBJECT);
153 (is64Bit()?sizeof(MachO::mach_header_64): sizeof(MachO::mach_header)));
171 is64Bit() ? sizeof(MachO::segment_command_64):
172 sizeof(MachO::segment_command);
173 Write32(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT)
    [all...]
MCObjectFileInfo.cpp 43 // MachO
62 MachO::S_ATTR_PURE_INSTRUCTIONS,
73 MachO::S_THREAD_LOCAL_REGULAR,
77 MachO::S_THREAD_LOCAL_ZEROFILL,
83 MachO::S_THREAD_LOCAL_VARIABLES,
88 MachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS,
93 MachO::S_CSTRING_LITERALS,
100 MachO::S_4BYTE_LITERALS,
104 MachO::S_8BYTE_LITERALS,
109 MachO::S_16BYTE_LITERALS
    [all...]
  /external/llvm/lib/Target/ARM/MCTargetDesc/
ARMMachObjectWriter.cpp 24 #include "llvm/Support/MachO.h"
66 RelocType = unsigned(MachO::ARM_RELOC_VANILLA);
99 RelocType = unsigned(MachO::ARM_RELOC_BR24);
106 RelocType = unsigned(MachO::ARM_THUMB_RELOC_BR22);
113 RelocType = unsigned(MachO::ARM_THUMB_RELOC_BR22);
127 RelocType = unsigned(MachO::ARM_RELOC_HALF);
131 RelocType = unsigned(MachO::ARM_RELOC_HALF);
136 RelocType = unsigned(MachO::ARM_RELOC_HALF);
140 RelocType = unsigned(MachO::ARM_RELOC_HALF);
156 unsigned Type = MachO::ARM_RELOC_HALF
    [all...]
  /external/llvm/lib/Target/AArch64/MCTargetDesc/
AArch64MachObjectWriter.cpp 22 #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);
97 RelocType = unsigned(MachO::ARM64_RELOC_PAGE21);
100 RelocType = unsigned(MachO::ARM64_RELOC_GOT_LOAD_PAGE21);
103 RelocType = unsigned(MachO::ARM64_RELOC_TLVP_LOAD_PAGE21)
    [all...]
  /external/llvm/tools/llvm-nm/
llvm-nm.cpp 27 #include "llvm/Object/MachO.h"
242 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj))
243 return MachO->is64Bit();
263 static void darwinPrintSymbol(MachOObjectFile *MachO, SymbolListT::iterator I,
265 MachO::mach_header H;
266 MachO::mach_header_64 H_64;
268 MachO::nlist_64 STE_64;
269 MachO::nlist STE;
273 if (MachO->is64Bit()) {
274 H_64 = MachO->MachOObjectFile::getHeader64()
    [all...]
  /external/llvm/lib/MC/MCParser/
DarwinAsmParser.cpp 202 MachO::S_CSTRING_LITERALS);
206 MachO::S_4BYTE_LITERALS, 4);
210 MachO::S_8BYTE_LITERALS, 8);
214 MachO::S_16BYTE_LITERALS, 16);
230 MachO::S_SYMBOL_STUBS |
231 MachO::S_ATTR_PURE_INSTRUCTIONS,
237 MachO::S_SYMBOL_STUBS |
238 MachO::S_ATTR_PURE_INSTRUCTIONS, 0, 26);
248 MachO::S_NON_LAZY_SYMBOL_POINTERS, 4);
252 MachO::S_LAZY_SYMBOL_POINTERS, 4)
    [all...]
  /external/llvm/tools/llvm-size/
llvm-size.cpp 19 #include "llvm/Object/MachO.h"
113 /// @brief Print the size of each Mach-O segment and section in @p MachO.
117 static void PrintDarwinSectionSizes(MachOObjectFile *MachO) {
125 uint32_t LoadCommandCount = MachO->getHeader().ncmds;
126 uint32_t Filetype = MachO->getHeader().filetype;
127 MachOObjectFile::LoadCommandInfo Load = MachO->getFirstLoadCommandInfo();
131 if (Load.C.cmd == MachO::LC_SEGMENT_64) {
132 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load);
142 MachO::section_64 Sec = MachO->getSection64(Load, J)
    [all...]
  /external/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/
ObjectContainerUniversalMachO.h 16 #include "llvm/Support/MachO.h"
94 llvm::MachO::fat_header m_header;
95 std::vector<llvm::MachO::fat_arch> m_fat_archs;
99 llvm::MachO::fat_header &header,
100 std::vector<llvm::MachO::fat_arch> &fat_archs);
ObjectContainerUniversalMachO.cpp 22 using namespace llvm::MachO;
124 llvm::MachO::fat_header &header,
125 std::vector<llvm::MachO::fat_arch> &fat_archs)
291 llvm::MachO::fat_header header;
292 std::vector<llvm::MachO::fat_arch> fat_archs;
295 for (const llvm::MachO::fat_arch &fat_arch : fat_archs)
  /external/llvm/tools/macho-dump/
macho-dump.cpp 1 //===-- macho-dump.cpp - Mach Object Dumping Tool -------------------------===//
14 #include "llvm/Object/MachO.h"
102 MachO::any_relocation_info RE = Obj.getRelocation(I->getRawDataRefImpl());
127 MachO::segment_command SLC = Obj.getSegmentLoadCommand(LCI);
136 MachO::section Sect = Obj.getSection(LCI, i);
150 MachO::segment_command_64 SLC = Obj.getSegment64LoadCommand(LCI);
158 MachO::section_64 Sect = Obj.getSection64(LCI, i);
189 MachO::symtab_command SLC = Obj.getSymtabLoadCommand();
208 MachO::nlist_64 STE = Obj.getSymbol64TableEntry(DRI);
213 MachO::nlist STE = Obj.getSymbolTableEntry(DRI)
    [all...]
  /external/llvm/lib/Target/X86/MCTargetDesc/
X86MachObjectWriter.cpp 21 #include "llvm/Support/MachO.h"
134 Type = MachO::X86_64_RELOC_UNSIGNED;
143 Type = MachO::X86_64_RELOC_BRANCH;
201 Type = MachO::X86_64_RELOC_UNSIGNED;
203 MachO::any_relocation_info MRE;
220 Type = MachO::X86_64_RELOC_SUBTRACTOR;
233 if (Section.hasAttribute(MachO::S_ATTR_DEBUG))
280 Type = MachO::X86_64_RELOC_GOT_LOAD;
282 Type = MachO::X86_64_RELOC_GOT;
284 Type = MachO::X86_64_RELOC_TLV
    [all...]
  /external/lldb/source/Core/
ArchSpec.cpp 19 #include "llvm/Support/MachO.h"
157 { ArchSpec::eCore_arm_generic , llvm::MachO::CPUTypeARM , CPU_ANY, UINT32_MAX , UINT32_MAX },
158 { ArchSpec::eCore_arm_generic , llvm::MachO::CPUTypeARM , 0 , UINT32_MAX , SUBTYPE_MASK },
159 { ArchSpec::eCore_arm_armv4 , llvm::MachO::CPUTypeARM , 5 , UINT32_MAX , SUBTYPE_MASK },
160 { ArchSpec::eCore_arm_armv4t , llvm::MachO::CPUTypeARM , 5 , UINT32_MAX , SUBTYPE_MASK },
161 { ArchSpec::eCore_arm_armv6 , llvm::MachO::CPUTypeARM , 6 , UINT32_MAX , SUBTYPE_MASK },
162 { ArchSpec::eCore_arm_armv5 , llvm::MachO::CPUTypeARM , 7 , UINT32_MAX , SUBTYPE_MASK },
163 { ArchSpec::eCore_arm_armv5e , llvm::MachO::CPUTypeARM , 7 , UINT32_MAX , SUBTYPE_MASK },
164 { ArchSpec::eCore_arm_armv5t , llvm::MachO::CPUTypeARM , 7 , UINT32_MAX , SUBTYPE_MASK },
165 { ArchSpec::eCore_arm_xscale , llvm::MachO::CPUTypeARM , 8 , UINT32_MAX , SUBTYPE_MASK }
    [all...]
  /external/llvm/include/llvm/MC/
MCSectionMachO.h 1 //===- MCSectionMachO.h - MachO Machine Code Sections -----------*- C++ -*-===//
19 #include "llvm/Support/MachO.h"
67 MachO::SectionType getType() const {
68 return static_cast<MachO::SectionType>(TypeAndAttributes &
69 MachO::SECTION_TYPE);
  /external/lldb/source/Plugins/ObjectFile/Mach-O/
ObjectFileMachO.h 13 #include "llvm/Support/MachO.h"
160 llvm::MachO::mach_header &header);
164 GetUUID (const llvm::MachO::mach_header &header,
185 llvm::MachO::mach_header m_header;
192 llvm::MachO::dysymtab_command m_dysymtab;
193 std::vector<llvm::MachO::segment_command_64> m_mach_segments;
194 std::vector<llvm::MachO::section_64> m_mach_sections;
  /external/lldb/source/Plugins/Process/mach-core/
ProcessMachCore.cpp 15 #include "llvm/Support/MachO.h"
145 llvm::MachO::mach_header header;
149 if (header.magic == llvm::MachO::HeaderMagic32Swapped ||
150 header.magic == llvm::MachO::HeaderMagic64Swapped)
163 if (header.magic == llvm::MachO::HeaderMagic32 ||
164 header.magic == llvm::MachO::HeaderMagic64)
173 case llvm::MachO::HeaderFileTypeDynamicLinkEditor:
180 case llvm::MachO::HeaderFileTypeExecutable:
184 if ((header.flags & llvm::MachO::HeaderFlagBitIsDynamicLinkObject) == 0)
239 llvm::MachO::mach_header header
    [all...]
  /external/lldb/source/Plugins/Process/MacOSX-Kernel/
ThreadKDP.cpp 13 #include "llvm/Support/MachO.h"
127 case llvm::MachO::CPUTypeARM:
130 case llvm::MachO::CPUTypeI386:
133 case llvm::MachO::CPUTypeX86_64:
  /external/llvm/tools/llvm-objdump/
MachODump.cpp 10 // This file implements the MachO-specific dumper for llvm-objdump.
29 #include "llvm/Object/MachO.h"
35 #include "llvm/Support/MachO.h"
107 case MachO::DICE_KIND_DATA:
128 case MachO::DICE_KIND_JUMP_TABLE8:
132 case MachO::DICE_KIND_JUMP_TABLE16:
137 case MachO::DICE_KIND_JUMP_TABLE32:
150 static void getSectionsAndSymbols(const MachO::mach_header Header,
169 if (Command.C.cmd == MachO::LC_FUNCTION_STARTS) {
172 MachO::linkedit_data_command LLC
    [all...]
  /external/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
DynamicLoaderMacOSXDYLD.cpp 11 #include "llvm/Support/MachO.h"
292 case llvm::MachO::HeaderMagic32:
293 case llvm::MachO::HeaderMagic64:
294 case llvm::MachO::HeaderMagic32Swapped:
295 case llvm::MachO::HeaderMagic64Swapped:
387 if (m_dyld.header.filetype == llvm::MachO::HeaderFileTypeDynamicLinkEditor)
    [all...]
  /external/llvm/tools/llvm-readobj/
MachODumper.cpp 10 // This file implements the MachO-specific dumper for llvm-readobj.
20 #include "llvm/Object/MachO.h"
162 MachO::section Sect = Obj->getSection(Sec);
174 MachO::section_64 Sect = Obj->getSection64(Sec);
191 MachO::nlist Entry = Obj->getSymbolTableEntry(DRI);
199 MachO::nlist_64 Entry = Obj->getSymbol64TableEntry(DRI);
319 MachO::any_relocation_info RE = Obj->getRelocation(DR);
392 if (MOSymbol.Type & MachO::N_STAB) {
395 if (MOSymbol.Type & MachO::N_PEXT)
397 if (MOSymbol.Type & MachO::N_EXT
    [all...]

Completed in 1385 milliseconds

1 2 3