Lines Matching defs:LoadCmd
62 const object::MachOObjectFile::LoadCommandInfo &LoadCmd,
65 for (auto Curr = reinterpret_cast<const SectionType *>(LoadCmd.Ptr +
67 End = reinterpret_cast<const SectionType *>(LoadCmd.Ptr +
68 LoadCmd.C.cmdsize);
122 for (auto LoadCmd : MachOObj.load_commands()) {
124 switch (LoadCmd.C.cmd) {
129 // LoadCmd.Ptr might not be aligned temporarily as
133 LoadCmd.Ptr + offsetof(MachO::segment_command, segname))) ==
139 LoadCmd, MachOObj, NextSectionIndex))
145 // LoadCmd.Ptr might not be aligned temporarily as
149 LoadCmd.Ptr + offsetof(MachO::segment_command_64, segname))) ==
155 LoadCmd, MachOObj, NextSectionIndex))
191 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \
195 if (LoadCmd.C.cmdsize > sizeof(MachO::LCStruct)) \
197 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) + \
199 LoadCmd.C.cmdsize - sizeof(MachO::LCStruct)); \
202 switch (LoadCmd.C.cmd) {
204 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr,
208 if (LoadCmd.C.cmdsize > sizeof(MachO::load_command))
210 reinterpret_cast<uint8_t *>(const_cast<char *>(LoadCmd.Ptr)) +
212 LoadCmd.C.cmdsize - sizeof(MachO::load_command));