Home
last modified time | relevance | path

Searched refs:mach_header (Results 1 – 25 of 68) sorted by relevance

123

/external/python/cpython2/Modules/_ctypes/darwin/
Ddlfcn_simple.c166 if ((((struct mach_header *)handle)->magic == MH_MAGIC) || in dlsymIntern()
167 (((struct mach_header *)handle)->magic == MH_CIGAM)) in dlsymIntern()
169 if (NSIsSymbolNameDefinedInImage((struct mach_header *)handle, symbol)) in dlsymIntern()
171 nssym = NSLookupSymbolInImage((struct mach_header *)handle, in dlsymIntern()
198 if ((((struct mach_header *)handle)->magic == MH_MAGIC) || in darwin_dlclose()
199 (((struct mach_header *)handle)->magic == MH_CIGAM)) in darwin_dlclose()
/external/python/cpython3/Modules/_ctypes/darwin/
Ddlfcn_simple.c166 if ((((struct mach_header *)handle)->magic == MH_MAGIC) || in dlsymIntern()
167 (((struct mach_header *)handle)->magic == MH_CIGAM)) in dlsymIntern()
169 if (NSIsSymbolNameDefinedInImage((struct mach_header *)handle, symbol)) in dlsymIntern()
171 nssym = NSLookupSymbolInImage((struct mach_header *)handle, in dlsymIntern()
198 if ((((struct mach_header *)handle)->magic == MH_MAGIC) || in darwin_dlclose()
199 (((struct mach_header *)handle)->magic == MH_CIGAM)) in darwin_dlclose()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_procmaps_mac.cpp126 static mach_header *dyld_hdr = 0;
145 static mach_header *get_dyld_image_header() { in get_dyld_image_header()
158 if (size >= sizeof(mach_header) && info.protection & kProtectionRead) { in get_dyld_image_header()
159 mach_header *hdr = (mach_header *)address; in get_dyld_image_header()
169 const mach_header *get_dyld_hdr() { in get_dyld_hdr()
297 const mach_header *hdr = (data_.current_image == kDyldImageIdx) in Next()
316 data_.current_load_cmd_addr = (const char *)hdr + sizeof(mach_header); in Next()
/external/llvm-project/llvm/unittests/BinaryFormat/
DMachOTest.cpp31 mach_header *Header = in TEST()
32 reinterpret_cast<mach_header *>(Valid32BitMachO); in TEST()
36 unsigned char *Current = Valid32BitMachO + sizeof(mach_header); in TEST()
38 Valid32BitMachO + sizeof(mach_header) + Header->sizeofcmds; in TEST()
/external/llvm-project/lldb/source/Plugins/ObjectFile/Mach-O/
DObjectFileMachO.h136 llvm::MachO::mach_header &header);
147 GetUUID(const llvm::MachO::mach_header &header,
152 lldb::ModuleSP module_sp, const llvm::MachO::mach_header &header,
162 static void GetAllArchSpecs(const llvm::MachO::mach_header &header,
212 llvm::MachO::mach_header m_header;
DObjectFileMachO.cpp741 return sizeof(struct mach_header); in MachHeaderSizeFromMagic()
829 llvm::MachO::mach_header header; in GetModuleSpecifications()
928 llvm::MachO::mach_header &header) { in ParseHeader()
1064 memset(&m_header, 0, sizeof(struct mach_header)); in ParseHeader()
4838 UUID ObjectFileMachO::GetUUID(const llvm::MachO::mach_header &header, in GetUUID()
4946 void ObjectFileMachO::GetAllArchSpecs(const llvm::MachO::mach_header &header, in GetAllArchSpecs()
5093 ModuleSP module_sp, const llvm::MachO::mach_header &header, in GetArchitecture()
6239 mach_header_64 mach_header; in SaveCore() local
6241 mach_header.magic = MH_MAGIC_64; in SaveCore()
6243 mach_header.magic = MH_MAGIC; in SaveCore()
[all …]
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DMachONormalizedFileBinaryReader.cpp121 static bool isMachOHeader(const mach_header *mh, bool &is64, bool &isBig) { in isMachOHeader()
157 const mach_header *mh = reinterpret_cast<const mach_header *>( in isThinObjectFile()
211 const mach_header *mh = reinterpret_cast<const mach_header *>(start); in readBinary()
218 mh = reinterpret_cast<const mach_header *>(start); in readBinary()
227 mach_header headerCopy; in readBinary()
228 const mach_header *smh = mh; in readBinary()
230 memcpy(&headerCopy, mh, sizeof(mach_header)); in readBinary()
238 start + (is64 ? sizeof(mach_header_64) : sizeof(mach_header)); in readBinary()
/external/llvm-project/lldb/source/Plugins/Process/mach-core/
DProcessMachCore.cpp68 const size_t header_size = sizeof(llvm::MachO::mach_header); in CreateInstance()
75 llvm::MachO::mach_header mach_header; in CreateInstance() local
76 if (ObjectFileMachO::ParseHeader(data, &data_offset, mach_header)) { in CreateInstance()
77 if (mach_header.filetype == llvm::MachO::MH_CORE) in CreateInstance()
137 llvm::MachO::mach_header header; in GetDynamicLoaderAddress()
228 llvm::MachO::mach_header header; in DoLoadCore()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_procmaps_mac.cc109 const mach_header* hdr = _dyld_get_image_header(current_image_); in Next()
124 current_load_cmd_addr_ = (char*)hdr + sizeof(mach_header); in Next()
/external/llvm-project/llvm/lib/BinaryFormat/
DMagic.cpp133 MinSize = sizeof(MachO::mach_header); in identify_magic()
143 MinSize = sizeof(MachO::mach_header); in identify_magic()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
DMagic.cpp132 MinSize = sizeof(MachO::mach_header); in identify_magic()
142 MinSize = sizeof(MachO::mach_header); in identify_magic()
/external/google-breakpad/src/common/mac/
Dmacho_walker.cc152 struct mach_header header; in FindHeader()
203 struct mach_header header; in WalkHeaderAtOffset()
Dmacho_utilities.h85 void breakpad_swap_mach_header(struct mach_header *mh);
/external/compiler-rt/lib/asan/
Dasan_mac.cc81 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_mac.cpp77 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
/external/llvm-project/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
DDynamicLoaderMacOSXDYLD.cpp762 llvm::MachO::mach_header *header, in ReadMachHeader()
764 DataBufferHeap header_bytes(sizeof(llvm::MachO::mach_header), 0); in ReadMachHeader()
768 if (bytes_read == sizeof(llvm::MachO::mach_header)) { in ReadMachHeader()
770 ::memset(header, 0, sizeof(llvm::MachO::mach_header)); in ReadMachHeader()
784 load_cmd_addr += sizeof(llvm::MachO::mach_header); in ReadMachHeader()
799 (sizeof(llvm::MachO::mach_header) / sizeof(uint32_t)) - in ReadMachHeader()
DDynamicLoaderMacOSXDYLD.h91 bool ReadMachHeader(lldb::addr_t addr, llvm::MachO::mach_header *header,
DDynamicLoaderDarwin.h110 llvm::MachO::mach_header header;
/external/llvm-project/lldb/test/API/macosx/lc-note/kern-ver-str/
Dcreate-empty-corefile.cpp172 struct mach_header mh; in get_uuid_from_binary()
187 file_offset += sizeof (struct mach_header); in get_uuid_from_binary()
/external/llvm-project/lldb/test/API/macosx/lc-note/firmware-corefile/
Dcreate-empty-corefile.cpp201 struct mach_header mh; in get_uuid_from_binary()
215 file_offset += sizeof(struct mach_header); in get_uuid_from_binary()
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/
DMachProcess.mm748 struct mach_header header;
749 if (ReadMemory(mach_o_header_addr, sizeof(struct mach_header), &header) !=
750 sizeof(struct mach_header)) {
753 load_cmds_p = mach_o_header_addr + sizeof(struct mach_header);
754 inf.mach_header.magic = header.magic;
755 inf.mach_header.cputype = header.cputype;
758 inf.mach_header.cpusubtype = header.cpusubtype & 0x00ffffff;
759 inf.mach_header.filetype = header.filetype;
760 inf.mach_header.ncmds = header.ncmds;
761 inf.mach_header.sizeofcmds = header.sizeofcmds;
[all …]
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOLayoutBuilder.cpp115 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in layoutSegments()
233 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in layoutTail()
/external/google-breakpad/src/client/mac/handler/
Ddynamic_images.h95 typedef mach_header breakpad_mach_header;
/external/llvm-project/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/
DDynamicLoaderDarwinKernel.cpp396 DynamicLoaderDarwinKernel::ReadMachHeader(addr_t addr, Process *process, llvm::MachO::mach_header &… in ReadMachHeader()
454 llvm::MachO::mach_header header; in CheckForKernelImageAtAddress()
661 llvm::MachO::mach_header mh; in ReadMemoryModule()
665 size_to_read = sizeof(llvm::MachO::mach_header) + mh.sizeofcmds; in ReadMemoryModule()
DDynamicLoaderDarwinKernel.h280 ReadMachHeader(lldb::addr_t addr, lldb_private::Process *process, llvm::MachO::mach_header &mh,

123