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()
120 for (auto LoadCmd : MachOObj.load_commands()) { in readLoadCommands() local
122 switch (LoadCmd.C.cmd) { in readLoadCommands()
131 LoadCmd.Ptr + offsetof(MachO::segment_command, segname))) == in readLoadCommands()
137 LoadCmd, MachOObj, NextSectionIndex)) in readLoadCommands()
147 LoadCmd.Ptr + offsetof(MachO::segment_command_64, segname))) == in readLoadCommands()
153 LoadCmd, MachOObj, NextSectionIndex)) in readLoadCommands()
186 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \ in readLoadCommands()
190 if (LoadCmd.C.cmdsize > sizeof(MachO::LCStruct)) \ in readLoadCommands()
192 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) + \ in readLoadCommands()
194 LoadCmd.C.cmdsize - sizeof(MachO::LCStruct)); \ in readLoadCommands()
197 switch (LoadCmd.C.cmd) { in readLoadCommands()
199 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
203 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command)) in readLoadCommands()
205 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) + in readLoadCommands()
207 LoadCmd.C.cmdsize - sizeof(MachO::load_command)); in readLoadCommands()