Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/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 …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectContainer/Mach-O-Fileset/
H A DObjectContainerMachOFileset.cpp90 return sizeof(struct mach_header); in MachHeaderSizeFromMagic()
99 static std::optional<mach_header> ParseMachOHeader(DataExtractor &data) { in ParseMachOHeader()
101 mach_header header; in ParseMachOHeader()
137 ParseFileset(DataExtractor &data, mach_header header, in ParseFileset()
176 std::optional<mach_header> header = ParseMachOHeader(data); in ParseHeader()
200 std::optional<mach_header> header = ParseMachOHeader(m_data); in ParseHeader()
/freebsd/contrib/llvm-project/lld/MachO/
H A DTarget.h50 headerSize = sizeof(typename LP::mach_header); in TargetInfo()
167 using mach_header = llvm::MachO::mach_header_64; member
183 using mach_header = llvm::MachO::mach_header; member
H A DInputFiles.cpp953 using Header = typename LP::mach_header; in parseLinkerOptions()
985 using Header = typename LP::mach_header; in parse()
1048 using Header = typename LP::mach_header; in parseLazy()
1716 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in DylibFile()
1813 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in parseLoadCommands()
2219 this, reinterpret_cast<const LP64::mach_header *>( in addLazySymbols()
2223 this, reinterpret_cast<const ILP32::mach_header *>( in addLazySymbols()
H A DInputFiles.h341 const auto *hdr = reinterpret_cast<const llvm::MachO::mach_header *>(anyHdr); in findCommands()
H A DObjC.cpp32 reinterpret_cast<const typename LP::mach_header *>(mb.getBufferStart()); in objectHasObjCSection()
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMagic.cpp158 MinSize = sizeof(MachO::mach_header); in identify_magic()
168 MinSize = sizeof(MachO::mach_header); in identify_magic()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_mac.cpp76 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
/freebsd/tools/build/cross-build/include/mac/sys/
H A Dlinker_set.h67 const struct mach_header *mh; in __set_getsectiondata()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dmacho_platform.cpp43 struct mach_header;
50 const mach_header *const mhdrs[]) ORC_RT_WEAK_IMPORT;
53 const mach_header *mh) ORC_RT_WEAK_IMPORT;
1027 reinterpret_cast<mach_header **>(RegObjBases.data())); in registerObjCRegistrationObjects()
1030 _objc_load_image(nullptr, reinterpret_cast<mach_header *>(RegObjBase)); in registerObjCRegistrationObjects()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A 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()
H A DMachOObject.cpp161 is64Bit() ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in nextAvailableSegmentAddress()
H A DMachOWriter.cpp28 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()
/freebsd/contrib/file/magic/Magdir/
H A Dcafebabe26 # for debugging purpose print offset to 1st mach_header like:
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMachO.cpp75 return checkMachORelocatableObject<MachO::mach_header>( in checkMachORelocatableObject()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DMachO.h712 const MachO::mach_header &getHeader() const;
855 MachO::mach_header Header;
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp208 : sizeof(MachO::mach_header))); in writeHeader()
874 sizeof(MachO::mach_header)) + LoadCommandsSize; in writeObject()
/freebsd/contrib/llvm-project/libunwind/src/
H A DAddressSpace.hpp59 const struct mach_header* mh;
H A DUnwindCursor.hpp143 static void dyldUnloadHook(const struct mach_header *mh, intptr_t slide);
241 void DwarfFDECache<A>::dyldUnloadHook(const struct mach_header *mh, intptr_t ) { in dyldUnloadHook()
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp305 MachO::mach_header H; in darwinPrintSymbol()
1235 MachO::mach_header H; in dumpSymbolsFromDLInfoMachO()
2026 MachO::mach_header H; in checkMachOAndArchFlags()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DMachOObjectFile.cpp210 : sizeof(MachO::mach_header); in getFirstLoadCommandInfo()
222 : sizeof(MachO::mach_header); in getNextLoadCommandInfo()
1283 SizeOfHeaders = sizeof(MachO::mach_header); in MachOObjectFile()
1707 MachO::mach_header H = MachOObjectFile::getHeader(); in checkSymbolTable()
4812 const MachO::mach_header &MachOObjectFile::getHeader() const { in getHeader()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMachO.h512 struct mach_header { struct
1162 inline void swapStruct(mach_header &mh) { in swapStruct()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp102 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp523 MachO::mach_header H; in checkMachOAndArchFlags()

12