/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_procmaps_mac.cpp | 126 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 D | Target.h | 50 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 D | InputFiles.cpp | 955 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 D | InputFiles.h | 337 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 D | ObjC.cpp | 33 reinterpret_cast<const typename LP::mach_header *>(mb.getBufferStart()); in objectHasObjCSection()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectContainer/Mach-O-Fileset/ |
H A D | ObjectContainerMachOFileset.cpp | 90 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 D | Magic.cpp | 158 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 D | asan_mac.cpp | 73 const struct mach_header *mh = (struct mach_header *)info.dli_fbase; in AsanApplyToGlobals()
|
/freebsd/tools/build/cross-build/include/mac/sys/ |
H A D | linker_set.h | 67 const struct mach_header *mh; in __set_getsectiondata()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | macho_platform.cpp | 41 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 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()
|
H A D | MachOObject.cpp | 148 is64Bit() ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in nextAvailableSegmentAddress()
|
H A D | MachOWriter.cpp | 29 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 D | cafebabe | 78 # for debugging purpose print offset to 1st mach_header like:
|
/freebsd/contrib/llvm-project/lldb/tools/compact-unwind/ |
H A D | compact-unwind-dumper.c | 113 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 D | MachO.h | 707 const MachO::mach_header &getHeader() const; 850 MachO::mach_header Header;
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MachObjectWriter.cpp | 204 : sizeof(MachO::mach_header))); in writeHeader() 869 sizeof(MachO::mach_header)) + LoadCommandsSize; in writeObject()
|
/freebsd/contrib/llvm-project/libunwind/src/ |
H A D | AddressSpace.hpp | 59 const struct mach_header* mh;
|
H A D | UnwindCursor.hpp | 120 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 D | llvm-nm.cpp | 303 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 D | MachO.h | 28 // 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 D | MachOEmitter.cpp | 104 is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in writeHeader()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/ |
H A D | llvm-size.cpp | 520 MachO::mach_header H;
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | MachOObjectFile.cpp | 209 : 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 D | MachODump.cpp | 2074 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()
|