Lines Matching refs:load_cmd

1602   llvm::MachO::segment_command_64 load_cmd;  in ProcessSegmentCommand()  local
1603 memcpy(&load_cmd, &load_cmd_, sizeof(load_cmd_)); in ProcessSegmentCommand()
1605 if (!m_data.GetU8(&offset, (uint8_t *)load_cmd.segname, 16)) in ProcessSegmentCommand()
1614 load_cmd.segname, strnlen(load_cmd.segname, sizeof(load_cmd.segname))); in ProcessSegmentCommand()
1629 load_cmd.vmaddr = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1630 load_cmd.vmsize = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1631 load_cmd.fileoff = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1632 load_cmd.filesize = m_data.GetAddress(&offset); in ProcessSegmentCommand()
1633 if (!m_data.GetU32(&offset, &load_cmd.maxprot, 4)) in ProcessSegmentCommand()
1636 SanitizeSegmentCommand(load_cmd, cmd_idx); in ProcessSegmentCommand()
1638 const uint32_t segment_permissions = GetSegmentPermissions(load_cmd); in ProcessSegmentCommand()
1640 (load_cmd.flags & SG_PROTECTED_VERSION_1) != 0; in ProcessSegmentCommand()
1644 m_mach_segments.push_back(load_cmd); in ProcessSegmentCommand()
1660 load_cmd.vmaddr, // File VM address == addresses as they are in ProcessSegmentCommand()
1662 load_cmd.vmsize, // VM size in bytes of this section in ProcessSegmentCommand()
1663 load_cmd.fileoff, // Offset to the data for this section in in ProcessSegmentCommand()
1665 load_cmd.filesize, // Size in bytes of this section as found in ProcessSegmentCommand()
1668 load_cmd.flags); // Flags for this section in ProcessSegmentCommand()
1685 if (is_dsym && unified_section_sp->GetFileAddress() != load_cmd.vmaddr) { in ProcessSegmentCommand()
1703 unified_section_sp->SetFileAddress(load_cmd.vmaddr); in ProcessSegmentCommand()
1721 const uint32_t num_u32s = load_cmd.cmd == LC_SEGMENT ? 7 : 8; in ProcessSegmentCommand()
1722 for (segment_sect_idx = 0; segment_sect_idx < load_cmd.nsects; in ProcessSegmentCommand()
1823 load_cmd.flags); // Flags for this section in ProcessSegmentCommand()
1844 if (!segment_is_encrypted && load_cmd.filesize != 0) in ProcessSegmentCommand()
1876 curr_section_sp->SetByteSize(load_cmd.vmsize); in ProcessSegmentCommand()
1885 const llvm::MachO::load_command &load_cmd, lldb::offset_t offset) { in ProcessDysymtabCommand() argument
1886 m_dysymtab.cmd = load_cmd.cmd; in ProcessDysymtabCommand()
1887 m_dysymtab.cmdsize = load_cmd.cmdsize; in ProcessDysymtabCommand()
1905 llvm::MachO::load_command load_cmd; in CreateSections() local
1908 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr) in CreateSections()
1911 if (load_cmd.cmd == LC_SEGMENT || load_cmd.cmd == LC_SEGMENT_64) in CreateSections()
1912 ProcessSegmentCommand(load_cmd, offset, i, context); in CreateSections()
1913 else if (load_cmd.cmd == LC_DYSYMTAB) in CreateSections()
1914 ProcessDysymtabCommand(load_cmd, offset); in CreateSections()
1916 offset = load_cmd_offset + load_cmd.cmdsize; in CreateSections()
4834 llvm::MachO::uuid_command load_cmd;
4839 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
4842 if (load_cmd.cmd == LC_UUID) {
4860 offset = cmd_offset + load_cmd.cmdsize;
4985 llvm::MachO::load_command load_cmd;
4992 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
4996 switch (load_cmd.cmd) {
5001 if (load_cmd.cmdsize != sizeof(version_min))
5009 os << GetOSName(load_cmd.cmd) << min_os.major_version << '.'
5016 if (load_cmd.cmd != llvm::MachO::LC_VERSION_MIN_MACOSX &&
5034 offset = cmd_offset + load_cmd.cmdsize;
5042 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
5046 if (load_cmd.cmd == llvm::MachO::LC_BUILD_VERSION) {
5048 if (load_cmd.cmdsize < sizeof(build_version)) {
5069 offset = cmd_offset + load_cmd.cmdsize;
5118 llvm::MachO::load_command load_cmd;
5126 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5129 switch (load_cmd.cmd) {
5140 if (load_cmd.cmd == LC_RPATH)
5162 offset = cmd_offset + load_cmd.cmdsize;
5254 llvm::MachO::load_command load_cmd;
5262 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5265 switch (load_cmd.cmd) {
5268 while (offset < cmd_offset + load_cmd.cmdsize) {
5346 offset = cmd_offset + load_cmd.cmdsize;
5799 llvm::MachO::dylib_command load_cmd;
5806 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5809 if (load_cmd.cmd == LC_ID_DYLIB) {
5811 version_cmd = load_cmd.cmd;
5812 if (m_data.GetU32(&offset, &load_cmd.dylib, 4) == nullptr)
5814 version = load_cmd.dylib.current_version;
5819 offset = cmd_offset + load_cmd.cmdsize;