Lines Matching defs:LoadCmd
61 const object::MachOObjectFile::LoadCommandInfo &LoadCmd,
64 for (auto Curr = reinterpret_cast<const SectionType *>(LoadCmd.Ptr +
66 End = reinterpret_cast<const SectionType *>(LoadCmd.Ptr +
67 LoadCmd.C.cmdsize);
121 for (auto LoadCmd : MachOObj.load_commands()) {
123 switch (LoadCmd.C.cmd) {
128 // LoadCmd.Ptr might not be aligned temporarily as
132 LoadCmd.Ptr + offsetof(MachO::segment_command, segname))) ==
138 LoadCmd, MachOObj, NextSectionIndex))
144 // LoadCmd.Ptr might not be aligned temporarily as
148 LoadCmd.Ptr + offsetof(MachO::segment_command_64, segname))) ==
154 LoadCmd, MachOObj, NextSectionIndex))
194 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \
198 if (LoadCmd.C.cmdsize > sizeof(MachO::LCStruct)) \
200 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) + \
202 LoadCmd.C.cmdsize - sizeof(MachO::LCStruct)); \
205 switch (LoadCmd.C.cmd) {
207 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr,
211 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command))
213 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) +
215 LoadCmd.C.cmdsize - sizeof(MachO::load_command));