Lines Matching refs:load_cmd
1586 llvm::MachO::segment_command_64 load_cmd; in ProcessSegmentCommand() local
1587 memcpy(&load_cmd, &load_cmd_, sizeof(load_cmd_)); in ProcessSegmentCommand()
1589 if (!m_data.GetU8(&offset, (uint8_t *)load_cmd.segname, 16)) in ProcessSegmentCommand()
1598 load_cmd.segname, strnlen(load_cmd.segname, sizeof(load_cmd.segname))); in ProcessSegmentCommand()
1613 load_cmd.vmaddr = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1614 load_cmd.vmsize = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1615 load_cmd.fileoff = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1616 load_cmd.filesize = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1617 if (!m_data.GetU32(&offset, &load_cmd.maxprot, 4)) in ProcessSegmentCommand()
1620 SanitizeSegmentCommand(load_cmd, cmd_idx); in ProcessSegmentCommand()
1622 const uint32_t segment_permissions = GetSegmentPermissions(load_cmd); in ProcessSegmentCommand()
1624 (load_cmd.flags & SG_PROTECTED_VERSION_1) != 0; in ProcessSegmentCommand()
1628 m_mach_segments.push_back(load_cmd); in ProcessSegmentCommand()
1644 load_cmd.vmaddr, // File VM address == addresses as they are in ProcessSegmentCommand()
1646 load_cmd.vmsize, // VM size in bytes of this section in ProcessSegmentCommand()
1647 load_cmd.fileoff, // Offset to the data for this section in in ProcessSegmentCommand()
1649 load_cmd.filesize, // Size in bytes of this section as found in ProcessSegmentCommand()
1652 load_cmd.flags); // Flags for this section in ProcessSegmentCommand()
1669 if (is_dsym && unified_section_sp->GetFileAddress() != load_cmd.vmaddr) { in ProcessSegmentCommand()
1687 unified_section_sp->SetFileAddress(load_cmd.vmaddr); in ProcessSegmentCommand()
1705 const uint32_t num_u32s = load_cmd.cmd == LC_SEGMENT ? 7 : 8; in ProcessSegmentCommand()
1706 for (segment_sect_idx = 0; segment_sect_idx < load_cmd.nsects; in ProcessSegmentCommand()
1807 load_cmd.flags); // Flags for this section in ProcessSegmentCommand()
1828 if (!segment_is_encrypted && load_cmd.filesize != 0) in ProcessSegmentCommand()
1860 curr_section_sp->SetByteSize(load_cmd.vmsize); in ProcessSegmentCommand()
1869 const llvm::MachO::load_command &load_cmd, lldb::offset_t offset) { in ProcessDysymtabCommand() argument
1870 m_dysymtab.cmd = load_cmd.cmd; in ProcessDysymtabCommand()
1871 m_dysymtab.cmdsize = load_cmd.cmdsize; in ProcessDysymtabCommand()
1889 llvm::MachO::load_command load_cmd; in CreateSections() local
1892 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr) in CreateSections()
1895 if (load_cmd.cmd == LC_SEGMENT || load_cmd.cmd == LC_SEGMENT_64) in CreateSections()
1896 ProcessSegmentCommand(load_cmd, offset, i, context); in CreateSections()
1897 else if (load_cmd.cmd == LC_DYSYMTAB) in CreateSections()
1898 ProcessDysymtabCommand(load_cmd, offset); in CreateSections()
1900 offset = load_cmd_offset + load_cmd.cmdsize; in CreateSections()
4818 llvm::MachO::uuid_command load_cmd;
4823 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
4826 if (load_cmd.cmd == LC_UUID) {
4844 offset = cmd_offset + load_cmd.cmdsize;
4969 llvm::MachO::load_command load_cmd;
4976 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
4980 switch (load_cmd.cmd) {
4985 if (load_cmd.cmdsize != sizeof(version_min))
4993 os << GetOSName(load_cmd.cmd) << min_os.major_version << '.'
5000 if (load_cmd.cmd != llvm::MachO::LC_VERSION_MIN_MACOSX &&
5018 offset = cmd_offset + load_cmd.cmdsize;
5026 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
5030 if (load_cmd.cmd == llvm::MachO::LC_BUILD_VERSION) {
5032 if (load_cmd.cmdsize < sizeof(build_version)) {
5053 offset = cmd_offset + load_cmd.cmdsize;
5102 llvm::MachO::load_command load_cmd;
5110 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5113 switch (load_cmd.cmd) {
5124 if (load_cmd.cmd == LC_RPATH)
5146 offset = cmd_offset + load_cmd.cmdsize;
5238 llvm::MachO::load_command load_cmd;
5246 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5249 switch (load_cmd.cmd) {
5252 while (offset < cmd_offset + load_cmd.cmdsize) {
5330 offset = cmd_offset + load_cmd.cmdsize;
5783 llvm::MachO::dylib_command load_cmd;
5790 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5793 if (load_cmd.cmd == LC_ID_DYLIB) {
5795 version_cmd = load_cmd.cmd;
5796 if (m_data.GetU32(&offset, &load_cmd.dylib, 4) == nullptr)
5798 version = load_cmd.dylib.current_version;
5803 offset = cmd_offset + load_cmd.cmdsize;