Lines Matching refs:scp

232     struct segment_command_64 *scp)
234 scp->cmd = scp32->cmd;
235 scp->cmdsize = scp32->cmdsize;
236 bcopy(scp32->segname, scp->segname, sizeof(scp->segname));
237 scp->vmaddr = scp32->vmaddr;
238 scp->vmsize = scp32->vmsize;
239 scp->fileoff = scp32->fileoff;
240 scp->filesize = scp32->filesize;
241 scp->maxprot = scp32->maxprot;
242 scp->initprot = scp32->initprot;
243 scp->nsects = scp32->nsects;
244 scp->flags = scp32->flags;
248 note_all_image_info_section(const struct segment_command_64 *scp,
258 if (strncmp(scp->segname, "__DATA", sizeof(scp->segname)) != 0)
260 for (i = 0; i < scp->nsects; ++i) {
868 struct segment_command_64 segment_command, *scp;
890 scp = (struct segment_command_64 *)lcp;
892 scp = &segment_command;
893 widen_segment_command((struct segment_command *)lcp, scp);
900 if (scp->fileoff + scp->filesize < scp->fileoff ||
901 scp->fileoff + scp->filesize > (uint64_t)macho_size)
907 if (total_section_size / single_section_size < scp->nsects)
912 if ((scp->fileoff & PAGE_MASK_64) != 0)
918 seg_size = round_page_64(scp->vmsize);
919 map_size = round_page_64(scp->filesize);
920 map_addr = trunc_page_64(scp->vmaddr); /* JVXXX note that in XNU TOT this is round instead of trunc for 64 bits */
926 (scp->initprot & VM_PROT_ALL) == VM_PROT_NONE &&
927 (scp->maxprot & VM_PROT_ALL) == VM_PROT_NONE) {
940 if (scp->cmd == LC_SEGMENT_64) {
971 map_offset = pager_offset + scp->fileoff; /* limited to 32 bits */
974 initprot = (scp->initprot) & VM_PROT_ALL;
975 maxprot = (scp->maxprot) & VM_PROT_ALL;
991 delta_size = map_size - scp->filesize;
1000 if (copyout(tmp, map_addr + scp->filesize,
1023 scp->initprot, scp->maxprot,
1029 if ( (scp->fileoff == 0) && (scp->filesize != 0) )
1032 if (scp->flags & SG_PROTECTED_VERSION_1) {
1033 ret = unprotect_segment(scp->fileoff,
1034 scp->filesize,
1045 note_all_image_info_section(scp,