Home
last modified time | relevance | path

Searched refs:load_command (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_mac.cpp187 layout_data->current_load_cmd_addr += ((const load_command *)lc)->cmdsize; in NextSegmentLoad()
188 if (((const load_command *)lc)->cmd == kLCSegment) { in NextSegmentLoad()
265 static const load_command *NextCommand(const load_command *lc) { in NextCommand()
266 return (const load_command *)((const char *)lc + lc->cmdsize); in NextCommand()
269 static void FindUUID(const load_command *first_lc, u8 *uuid_output) { in FindUUID()
270 for (const load_command *lc = first_lc; lc->cmd != 0; lc = NextCommand(lc)) { in FindUUID()
280 static bool IsModuleInstrumented(const load_command *first_lc) { in IsModuleInstrumented()
281 for (const load_command *lc = first_lc; lc->cmd != 0; lc = NextCommand(lc)) { in IsModuleInstrumented()
323 FindUUID((const load_command *)data_.current_load_cmd_addr, in Next()
326 (const load_command *)data_.current_load_cmd_addr); in Next()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/
H A DMachOReader.cpp177 sizeof(MachO::load_command)); in readLoadCommands()
180 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command)) in readLoadCommands()
183 sizeof(MachO::load_command), in readLoadCommands()
184 LoadCmd.C.cmdsize - sizeof(MachO::load_command)); in readLoadCommands()
H A DMachOWriter.cpp218 assert(sizeof(MachO::load_command) + LC.Payload.size() == in writeLoadCommands()
222 memcpy(Begin, &MLC.load_command_data, sizeof(MachO::load_command)); in writeLoadCommands()
223 Begin += sizeof(MachO::load_command); in writeLoadCommands()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMachO.def30 HANDLE_LOAD_COMMAND(LC_PREPAGE, 0x0000000Au, load_command)
94 LOAD_COMMAND_STRUCT(load_command)
H A DMachO.h530 struct load_command { struct
1048 inline void swapStruct(load_command &lc) { in swapStruct()
/freebsd-13.1/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileBinaryReader.cpp62 const load_command *lc = reinterpret_cast<const load_command*>(p); in forEachLoadCommand()
63 load_command lcCopy; in forEachLoadCommand()
64 const load_command *slc = lc; in forEachLoadCommand()
66 memcpy(&lcCopy, lc, sizeof(load_command)); in forEachLoadCommand()
/freebsd-13.1/contrib/llvm-project/lld/MachO/
H A DInputFiles.h235 template <class CommandType = llvm::MachO::load_command, class... Types>
242 template <class CommandType = llvm::MachO::load_command, class... Types>
H A DInputFiles.cpp776 if (const load_command *cmd = findCommand(hdr, LP::segmentLCType)) { in parse()
784 if (const load_command *cmd = findCommand(hdr, LC_SYMTAB)) { in parse()
829 const load_command *cmd = findCommand(buf, LC_DATA_IN_CODE); in parseDataInCode()
979 if (const load_command *cmd = findCommand(hdr, LC_ID_DYLIB)) { in DylibFile()
1010 if (const load_command *cmd = findCommand(hdr, LC_DYLD_INFO_ONLY)) { in DylibFile()
1033 auto *cmd = reinterpret_cast<const load_command *>(p); in parseLoadCommands()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp238 sizeof(MachO::load_command)); in writeLoadCommands()
239 BytesWritten = sizeof(MachO::load_command); in writeLoadCommands()
241 writeLoadCommandData<MachO::load_command>(LC, OS, Obj.IsLittleEndian); in writeLoadCommands()
H A DMachOYAML.cpp418 void MappingTraits<MachO::load_command>::mapping( in mapping()
419 IO &IO, MachO::load_command &LoadCommand) {} in mapping()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/
H A DMachO.h266 MachO::load_command C; // The command itself.
/freebsd-13.1/contrib/llvm-project/lldb/tools/compact-unwind/
H A Dcompact-unwind-dumper.c175 struct load_command lc; in scan_macho_load_commands()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DMachOObjectFile.cpp188 if (auto CmdOrErr = getStructOrErr<MachO::load_command>(Obj, Ptr)) { in getLoadCommandInfo()
204 if (sizeof(MachO::load_command) > Obj.getHeader().sizeofcmds) in getFirstLoadCommandInfo()
215 if (L.Ptr + L.C.cmdsize + sizeof(MachO::load_command) > in getNextLoadCommandInfo()