Lines Matching refs:LoadCmd
28 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
53 extractSections(const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
66 memcpy((void *)&(LC.Data.LCStruct##_data), LoadCmd.Ptr, \
71 processLoadCommandData<MachO::LCStruct>(LC, LoadCmd, *Y.get())) \
169 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections() argument
171 auto End = LoadCmd.Ptr + LoadCmd.C.cmdsize; in extractSections()
173 reinterpret_cast<const SectionType *>(LoadCmd.Ptr + sizeof(SegmentType)); in extractSections()
208 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
210 return LoadCmd.Ptr + sizeof(StructType); in processLoadCommandData()
217 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
220 LoadCmd, LC.Sections, Y); in processLoadCommandData()
227 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
230 LoadCmd, LC.Sections, Y); in processLoadCommandData()
236 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in readString() argument
237 auto Start = LoadCmd.Ptr + sizeof(StructType); in readString()
238 auto MaxSize = LoadCmd.C.cmdsize - sizeof(StructType); in readString()
248 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
250 return readString<MachO::dylib_command>(LC, LoadCmd); in processLoadCommandData()
257 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
259 return readString<MachO::dylinker_command>(LC, LoadCmd); in processLoadCommandData()
266 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
268 return readString<MachO::rpath_command>(LC, LoadCmd); in processLoadCommandData()
275 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() argument
277 auto Start = LoadCmd.Ptr + sizeof(MachO::build_version_command); in processLoadCommandData()
317 for (auto LoadCmd : Obj.load_commands()) { in dumpLoadCommands() local
319 const char *EndPtr = LoadCmd.Ptr; in dumpLoadCommands()
320 switch (LoadCmd.C.cmd) { in dumpLoadCommands()
322 memcpy((void *)&(LC.Data.load_command_data), LoadCmd.Ptr, in dumpLoadCommands()
327 processLoadCommandData<MachO::load_command>(LC, LoadCmd, in dumpLoadCommands()
335 auto RemainingBytes = LoadCmd.C.cmdsize - (EndPtr - LoadCmd.Ptr); in dumpLoadCommands()