Lines Matching refs:LoadCmd
61 const object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections() argument
64 for (auto Curr = reinterpret_cast<const SectionType *>(LoadCmd.Ptr + in extractSections()
66 End = reinterpret_cast<const SectionType *>(LoadCmd.Ptr + in extractSections()
67 LoadCmd.C.cmdsize); in extractSections()
119 for (auto LoadCmd : MachOObj.load_commands()) { in readLoadCommands() local
121 switch (LoadCmd.C.cmd) { in readLoadCommands()
128 LoadCmd, MachOObj, NextSectionIndex)) in readLoadCommands()
136 LoadCmd, MachOObj, NextSectionIndex)) in readLoadCommands()
163 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \ in readLoadCommands()
167 if (LoadCmd.C.cmdsize > sizeof(MachO::LCStruct)) \ in readLoadCommands()
169 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) + \ in readLoadCommands()
171 LoadCmd.C.cmdsize - sizeof(MachO::LCStruct)); \ in readLoadCommands()
174 switch (LoadCmd.C.cmd) { in readLoadCommands()
176 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
180 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command)) in readLoadCommands()
182 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) + in readLoadCommands()
184 LoadCmd.C.cmdsize - sizeof(MachO::load_command)); in readLoadCommands()