Lines Matching defs:load_cmd
1649 llvm::MachO::segment_command_64 load_cmd;
1650 memcpy(&load_cmd, &load_cmd_, sizeof(load_cmd_));
1652 if (!m_data.GetU8(&offset, (uint8_t *)load_cmd.segname, 16))
1661 load_cmd.segname, strnlen(load_cmd.segname, sizeof(load_cmd.segname)));
1676 load_cmd.vmaddr = m_data.GetAddress(&offset);
1677 load_cmd.vmsize = m_data.GetAddress(&offset);
1678 load_cmd.fileoff = m_data.GetAddress(&offset);
1679 load_cmd.filesize = m_data.GetAddress(&offset);
1680 if (!m_data.GetU32(&offset, &load_cmd.maxprot, 4))
1683 SanitizeSegmentCommand(load_cmd, cmd_idx);
1685 const uint32_t segment_permissions = GetSegmentPermissions(load_cmd);
1687 (load_cmd.flags & SG_PROTECTED_VERSION_1) != 0;
1703 load_cmd.vmaddr, // File VM address == addresses as they are
1705 load_cmd.vmsize, // VM size in bytes of this section
1706 load_cmd.fileoff, // Offset to the data for this section in
1708 load_cmd.filesize, // Size in bytes of this section as found
1711 load_cmd.flags); // Flags for this section
1728 if (is_dsym && unified_section_sp->GetFileAddress() != load_cmd.vmaddr) {
1746 unified_section_sp->SetFileAddress(load_cmd.vmaddr);
1764 const uint32_t num_u32s = load_cmd.cmd == LC_SEGMENT ? 7 : 8;
1765 for (segment_sect_idx = 0; segment_sect_idx < load_cmd.nsects;
1866 load_cmd.flags); // Flags for this section
1887 if (!segment_is_encrypted && load_cmd.filesize != 0)
1919 curr_section_sp->SetByteSize(load_cmd.vmsize);
1928 const llvm::MachO::load_command &load_cmd, lldb::offset_t offset) {
1929 m_dysymtab.cmd = load_cmd.cmd;
1930 m_dysymtab.cmdsize = load_cmd.cmdsize;
1948 llvm::MachO::load_command load_cmd;
1951 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
1954 if (load_cmd.cmd == LC_SEGMENT || load_cmd.cmd == LC_SEGMENT_64)
1955 ProcessSegmentCommand(load_cmd, offset, i, context);
1956 else if (load_cmd.cmd == LC_DYSYMTAB)
1957 ProcessDysymtabCommand(load_cmd, offset);
1959 offset = load_cmd_offset + load_cmd.cmdsize;
4851 llvm::MachO::uuid_command load_cmd;
4856 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
4859 if (load_cmd.cmd == LC_UUID) {
4877 offset = cmd_offset + load_cmd.cmdsize;
5008 llvm::MachO::load_command load_cmd;
5015 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
5019 switch (load_cmd.cmd) {
5024 if (load_cmd.cmdsize != sizeof(version_min))
5032 os << GetOSName(load_cmd.cmd) << min_os.major_version << '.'
5039 if (load_cmd.cmd != llvm::MachO::LC_VERSION_MIN_MACOSX &&
5057 offset = cmd_offset + load_cmd.cmdsize;
5065 if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
5069 if (load_cmd.cmd == llvm::MachO::LC_BUILD_VERSION) {
5071 if (load_cmd.cmdsize < sizeof(build_version)) {
5092 offset = cmd_offset + load_cmd.cmdsize;
5143 llvm::MachO::load_command load_cmd;
5151 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5154 switch (load_cmd.cmd) {
5182 if (load_cmd.cmd == LC_RPATH)
5204 offset = cmd_offset + load_cmd.cmdsize;
5292 llvm::MachO::load_command load_cmd;
5300 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5303 switch (load_cmd.cmd) {
5306 while (offset < cmd_offset + load_cmd.cmdsize) {
5383 offset = cmd_offset + load_cmd.cmdsize;
5910 llvm::MachO::dylib_command load_cmd;
5917 if (m_data.GetU32(&offset, &load_cmd, 2) == nullptr)
5920 if (load_cmd.cmd == LC_ID_DYLIB) {
5922 version_cmd = load_cmd.cmd;
5923 if (m_data.GetU32(&offset, &load_cmd.dylib, 4) == nullptr)
5925 version = load_cmd.dylib.current_version;
5930 offset = cmd_offset + load_cmd.cmdsize;