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