Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_mac.cpp126 static mach_header *dyld_hdr = 0;
139 static bool IsDyldHdr(const mach_header *hdr) { in IsDyldHdr()
151 static mach_header *GetDyldImageHeaderViaVMRegion() { in GetDyldImageHeaderViaVMRegion()
164 if (size >= sizeof(mach_header) && info.protection & kProtectionRead) { in GetDyldImageHeaderViaVMRegion()
165 mach_header *hdr = (mach_header *)address; in GetDyldImageHeaderViaVMRegion()
195 static mach_header *GetDyldImageHeaderViaSharedCache() { in GetDyldImageHeaderViaSharedCache()
205 __block mach_header *dyldHdr = nullptr; in GetDyldImageHeaderViaSharedCache()
209 mach_header *hdr = in GetDyldImageHeaderViaSharedCache()
210 (mach_header *)(cacheStart + info->textSegmentOffset); in GetDyldImageHeaderViaSharedCache()
219 const mach_header *get_dyld_hdr() { in get_dyld_hdr()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/LowerGlobalDestructors/
H A Dlower-global-dtors-existing-dos_handle.ll6 %struct.mach_header = type { i32, i32, i32, i32, i32, i32, i32 }
7 @__dso_handle = external global %struct.mach_header
15 …__cxa_atexit(void (i8*)* @call_dtors.0, i8* null, i8* bitcast (%struct.mach_header* @__dso_handle …
/llvm-project-15.0.7/llvm/unittests/BinaryFormat/
H A 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()
/llvm-project-15.0.7/lld/MachO/
H A DTarget.h40 headerSize = sizeof(typename LP::mach_header); in TargetInfo()
134 using mach_header = llvm::MachO::mach_header_64; member
150 using mach_header = llvm::MachO::mach_header; member
H A DObjC.cpp27 reinterpret_cast<const typename LP::mach_header *>(mb.getBufferStart()); in objectHasObjCSection()
H A DInputFiles.h326 const auto *hdr = reinterpret_cast<const llvm::MachO::mach_header *>(anyHdr); in findCommands()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/Mach-O/
H A DObjectFileMachO.h147 llvm::MachO::mach_header &header);
156 GetUUID(const llvm::MachO::mach_header &header,
161 lldb::ModuleSP module_sp, const llvm::MachO::mach_header &header,
171 static void GetAllArchSpecs(const llvm::MachO::mach_header &header,
256 llvm::MachO::mach_header m_header;
H A DObjectFileMachO.cpp871 llvm::MachO::mach_header header; in GetModuleSpecifications()
6596 mach_header.magic = MH_MAGIC_64;
6598 mach_header.magic = MH_MAGIC;
6602 mach_header.filetype = MH_CORE;
6604 mach_header.flags = 0;
6605 mach_header.reserved = 0;
6622 switch (mach_header.cputype) {
6658 ++mach_header.ncmds;
6667 mach_header.ncmds++;
6672 mach_header.ncmds++;
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/mach-core/
H A DProcessMachCore.cpp66 const size_t header_size = sizeof(llvm::MachO::mach_header); in CreateInstance()
73 llvm::MachO::mach_header mach_header; in CreateInstance() local
74 if (ObjectFileMachO::ParseHeader(data, &data_offset, mach_header)) { in CreateInstance()
75 if (mach_header.filetype == llvm::MachO::MH_CORE) in CreateInstance()
129 llvm::MachO::mach_header header; in GetDynamicLoaderAddress()
301 llvm::MachO::mach_header header; in DoLoadCore()
/llvm-project-15.0.7/llvm/lib/BinaryFormat/
H A DMagic.cpp144 MinSize = sizeof(MachO::mach_header); in identify_magic()
154 MinSize = sizeof(MachO::mach_header); in identify_magic()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_mac.cpp77 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
H A DDynamicLoaderMacOSXDYLD.cpp767 llvm::MachO::mach_header *header, in ReadMachHeader()
769 DataBufferHeap header_bytes(sizeof(llvm::MachO::mach_header), 0); in ReadMachHeader()
773 if (bytes_read == sizeof(llvm::MachO::mach_header)) { in ReadMachHeader()
775 ::memset(header, 0, sizeof(llvm::MachO::mach_header)); in ReadMachHeader()
789 load_cmd_addr += sizeof(llvm::MachO::mach_header); in ReadMachHeader()
804 (sizeof(llvm::MachO::mach_header) / sizeof(uint32_t)) - in ReadMachHeader()
H A DDynamicLoaderMacOSXDYLD.h91 bool ReadMachHeader(lldb::addr_t addr, llvm::MachO::mach_header *header,
H A DDynamicLoaderDarwin.h110 llvm::MachO::mach_header header;
/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/kern-ver-str/
H A 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()
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachProcess.mm773 struct mach_header header;
775 sizeof(struct mach_header)) {
782 inf.mach_header.magic = header.magic;
783 inf.mach_header.cputype = header.cputype;
787 inf.mach_header.filetype = header.filetype;
788 inf.mach_header.ncmds = header.ncmds;
790 inf.mach_header.flags = header.flags;
800 inf.mach_header.magic = header.magic;
801 inf.mach_header.cputype = header.cputype;
806 inf.mach_header.ncmds = header.ncmds;
[all …]
H A DMachProcess.h64 struct mach_header_64 mach_header; member
/llvm-project-15.0.7/lldb/test/API/macosx/lc-note/firmware-corefile/
H A Dcreate-empty-corefile.cpp218 struct mach_header mh; in get_uuid_from_binary()
232 file_offset += sizeof(struct mach_header); in get_uuid_from_binary()
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/
H A DDynamicLoaderDarwinKernel.cpp392 DynamicLoaderDarwinKernel::ReadMachHeader(addr_t addr, Process *process, llvm::MachO::mach_header &… in ReadMachHeader()
450 llvm::MachO::mach_header header; in CheckForKernelImageAtAddress()
658 llvm::MachO::mach_header mh; in ReadMemoryModule()
662 size_to_read = sizeof(llvm::MachO::mach_header) + mh.sizeofcmds; in ReadMemoryModule()
H A DDynamicLoaderDarwinKernel.h274 ReadMachHeader(lldb::addr_t addr, lldb_private::Process *process, llvm::MachO::mach_header &mh,
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOLayoutBuilder.cpp114 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in layoutSegments()
232 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in layoutTail()
H A DMachOObject.cpp135 is64Bit() ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in nextAvailableSegmentAddress()
H A DMachOWriter.cpp29 return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in headerSize()
150 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
/llvm-project-15.0.7/lldb/tools/compact-unwind/
H A Dcompact-unwind-dumper.c113 struct mach_header mh; in scan_macho_load_commands()
114 memcpy(&mh, offset, sizeof(struct mach_header)); in scan_macho_load_commands()
118 offset += sizeof(struct mach_header); in scan_macho_load_commands()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DMachO.h673 const MachO::mach_header &getHeader() const;
803 MachO::mach_header Header;

12