Home
last modified time | relevance | path

Searched refs:mach_header (Results 1 – 25 of 26) 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/lld/MachO/
H A DTarget.h50 headerSize = sizeof(typename LP::mach_header); in TargetInfo()
151 using mach_header = llvm::MachO::mach_header_64; member
167 using mach_header = llvm::MachO::mach_header; member
H A DInputFiles.cpp955 using Header = typename LP::mach_header; in parseLinkerOptions()
987 using Header = typename LP::mach_header; in parse()
1050 using Header = typename LP::mach_header; in parseLazy()
1695 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in DylibFile()
1784 auto *hdr = reinterpret_cast<const mach_header *>(mb.getBufferStart()); in parseLoadCommands()
2159 this, reinterpret_cast<const LP64::mach_header *>( in addLazySymbols()
2163 this, reinterpret_cast<const ILP32::mach_header *>( in addLazySymbols()
H A DInputFiles.h337 const auto *hdr = reinterpret_cast<const llvm::MachO::mach_header *>(anyHdr); in findCommands()
354 // anyHdr should be a pointer to either mach_header or mach_header_64
H A DObjC.cpp33 reinterpret_cast<const typename LP::mach_header *>(mb.getBufferStart()); in objectHasObjCSection()
/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/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.cpp73 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.cpp41 struct mach_header;
48 const mach_header *const mhdrs[]) ORC_RT_WEAK_IMPORT;
51 const mach_header *mh) ORC_RT_WEAK_IMPORT;
1080 reinterpret_cast<mach_header **>(RegObjBases.data())); in dlcloseDeinitialize()
1083 _objc_load_image(nullptr, reinterpret_cast<mach_header *>(RegObjBase)); in dlcloseDeinitialize()
/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.cpp148 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()
151 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
/freebsd/contrib/file/magic/Magdir/
H A Dcafebabe78 # for debugging purpose print offset to 1st mach_header like:
/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.h707 const MachO::mach_header &getHeader() const;
850 MachO::mach_header Header;
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp204 : sizeof(MachO::mach_header))); in writeHeader()
869 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.hpp120 static void dyldUnloadHook(const struct mach_header *mh, intptr_t slide);
217 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.cpp303 MachO::mach_header H; in darwinPrintSymbol()
1233 MachO::mach_header H; in dumpSymbolsFromDLInfoMachO()
2024 MachO::mach_header H; in checkMachOAndArchFlags()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMachO.h28 // Constants for the "magic" field in llvm::MachO::mach_header and
41 // Constants for the "filetype" field in llvm::MachO::mach_header and
58 // Constant bits for the "flags" field in llvm::MachO::mach_header and
512 struct mach_header {
1162 inline void swapStruct(mach_header &mh) {
518 struct mach_header { global() struct
528 flagsmach_header global() argument
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp104 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp520 MachO::mach_header H;
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DMachOObjectFile.cpp209 : sizeof(MachO::mach_header); in getFirstLoadCommandInfo()
221 : sizeof(MachO::mach_header); in getNextLoadCommandInfo()
1282 SizeOfHeaders = sizeof(MachO::mach_header); in MachOObjectFile()
1706 MachO::mach_header H = MachOObjectFile::getHeader(); in checkSymbolTable()
4813 const MachO::mach_header &MachOObjectFile::getHeader() const { in getHeader()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp2074 MachO::mach_header H; in checkMachOAndArchFlags()
6798 MachO::mach_header H; in printObjcMetaData()
7208 const MachO::mach_header H = MachOOF->getHeader(); in getMachODSymObject()
7370 MachO::mach_header Header = MachOOF->getHeader(); in DisassembleMachO()
10236 MachO::mach_header H; in PrintMachHeader()
10264 MachO::mach_header H; in printMachOLoadCommands()

12