/external/python/cpython2/Modules/_ctypes/darwin/ |
D | dlfcn_simple.c | 166 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/ |
D | dlfcn_simple.c | 166 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/ |
D | sanitizer_procmaps_mac.cpp | 126 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/ |
D | MachOTest.cpp | 31 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/ |
D | ObjectFileMachO.h | 136 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;
|
D | ObjectFileMachO.cpp | 741 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/ |
D | MachONormalizedFileBinaryReader.cpp | 121 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/ |
D | ProcessMachCore.cpp | 68 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/ |
D | sanitizer_procmaps_mac.cc | 109 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/ |
D | Magic.cpp | 133 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/ |
D | Magic.cpp | 132 MinSize = sizeof(MachO::mach_header); in identify_magic() 142 MinSize = sizeof(MachO::mach_header); in identify_magic()
|
/external/google-breakpad/src/common/mac/ |
D | macho_walker.cc | 152 struct mach_header header; in FindHeader() 203 struct mach_header header; in WalkHeaderAtOffset()
|
D | macho_utilities.h | 85 void breakpad_swap_mach_header(struct mach_header *mh);
|
/external/compiler-rt/lib/asan/ |
D | asan_mac.cc | 81 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_mac.cpp | 77 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
|
/external/llvm-project/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/ |
D | DynamicLoaderMacOSXDYLD.cpp | 762 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()
|
D | DynamicLoaderMacOSXDYLD.h | 91 bool ReadMachHeader(lldb::addr_t addr, llvm::MachO::mach_header *header,
|
D | DynamicLoaderDarwin.h | 110 llvm::MachO::mach_header header;
|
/external/llvm-project/lldb/test/API/macosx/lc-note/kern-ver-str/ |
D | create-empty-corefile.cpp | 172 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/ |
D | create-empty-corefile.cpp | 201 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/ |
D | MachProcess.mm | 748 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/ |
D | MachOLayoutBuilder.cpp | 115 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/ |
D | dynamic_images.h | 95 typedef mach_header breakpad_mach_header;
|
/external/llvm-project/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/ |
D | DynamicLoaderDarwinKernel.cpp | 396 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()
|
D | DynamicLoaderDarwinKernel.h | 280 ReadMachHeader(lldb::addr_t addr, lldb_private::Process *process, llvm::MachO::mach_header &mh,
|