Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A 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()
/freebsd-13.1/contrib/llvm-project/lld/MachO/
H A DTarget.h38 headerSize = sizeof(typename LP::mach_header); in TargetInfo()
106 using mach_header = llvm::MachO::mach_header_64; member
122 using mach_header = llvm::MachO::mach_header; member
H A DObjC.cpp26 reinterpret_cast<const typename LP::mach_header *>(mb.getBufferStart()); in hasObjCSection()
H A DInputFiles.h217 const auto *hdr = reinterpret_cast<const llvm::MachO::mach_header *>(anyHdr); in findCommands()
H A DInputFiles.cpp750 using Header = typename LP::mach_header; in parse()
976 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in DylibFile()
1029 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in parseLoadCommands()
H A DSyntheticSections.cpp94 auto *hdr = reinterpret_cast<mach_header *>(buf); in writeTo()
/freebsd-13.1/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A 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()
H A DMachONormalizedFileBinaryWriter.cpp261 _startOfLoadCommands = _is64 ? sizeof(mach_header_64) : sizeof(mach_header); in MachOFileLayout()
592 mach_header *mh = reinterpret_cast<mach_header*>(_buffer); in writeMachHeader()
/freebsd-13.1/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMagic.cpp138 MinSize = sizeof(MachO::mach_header); in identify_magic()
148 MinSize = sizeof(MachO::mach_header); in identify_magic()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_mac.cpp77 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-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 DObject.cpp115 is64Bit() ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in nextAvailableSegmentAddress()
H A DMachOWriter.cpp23 return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in headerSize()
170 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
/freebsd-13.1/contrib/file/magic/Magdir/
H A Dcafebabe72 # for debugging purpose print offset to 1st mach_header like:
/freebsd-13.1/contrib/llvm-project/lldb/tools/compact-unwind/
H A Dcompact-unwind-dumper.c156 struct mach_header mh; in scan_macho_load_commands()
157 memcpy(&mh, offset, sizeof(struct mach_header)); in scan_macho_load_commands()
161 offset += sizeof(struct mach_header); in scan_macho_load_commands()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/
H A DMachO.h546 const MachO::mach_header &getHeader() const;
661 MachO::mach_header Header;
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp161 : sizeof(MachO::mach_header))); in writeHeader()
815 sizeof(MachO::mach_header)) + LoadCommandsSize; in writeObject()
/freebsd-13.1/contrib/llvm-project/libunwind/src/
H A DAddressSpace.hpp52 const struct mach_header* mh;
H A DUnwindCursor.hpp105 static void dyldUnloadHook(const struct mach_header *mh, intptr_t slide);
202 void DwarfFDECache<A>::dyldUnloadHook(const struct mach_header *mh, intptr_t ) { in dyldUnloadHook()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp272 MachO::mach_header H; in darwinPrintSymbol()
1124 MachO::mach_header H; in dumpSymbolsFromDLInfoMachO()
1778 MachO::mach_header H; in checkMachOAndArchFlags()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp97 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DMachOObjectFile.cpp203 : sizeof(MachO::mach_header); in getFirstLoadCommandInfo()
214 : sizeof(MachO::mach_header); in getNextLoadCommandInfo()
1271 SizeOfHeaders = sizeof(MachO::mach_header); in MachOObjectFile()
1686 MachO::mach_header H = MachOObjectFile::getHeader(); in checkSymbolTable()
4456 const MachO::mach_header &MachOObjectFile::getHeader() const { in getHeader()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMachO.h509 struct mach_header { struct
1027 inline void swapStruct(mach_header &mh) { in swapStruct()
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dsysinfo.c1463 const struct mach_header *header = _dyld_get_image_header(i); in macos_shared_libs()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp525 MachO::mach_header H; in checkMachOAndArchFlags()

12