Lines Matching defs:seg
526 struct segment_command * seg;
534 struct segment_command seg;
545 seg = (struct segment_command *)(hdr + 1);
548 idx++, seg = (struct segment_command *)(((vm_offset_t)seg) + seg->cmdsize))
550 if (LC_SYMTAB == seg->cmd)
559 symcmd = (struct symtab_command *) seg;
584 cmd->seg.cmd = LC_SEGMENT;
585 cmd->seg.cmdsize = sizeof(struct segment_command);
586 strlcpy(cmd->seg.segname, SEG_LINKEDIT, sizeof(cmd->seg.segname));
587 cmd->seg.vmaddr = 0;
588 cmd->seg.vmsize = 0;
589 cmd->seg.fileoff = cmd->symcmd.symoff;
590 cmd->seg.filesize = symtabsize;
591 cmd->seg.maxprot = 7;
592 cmd->seg.initprot = 1;
593 cmd->seg.nsects = 0;
594 cmd->seg.flags = 0;
633 struct segment_command * seg;
657 seg = (struct segment_command *)(hdr + 1);
660 idx++, seg = (struct segment_command *)(((vm_offset_t)seg) + seg->cmdsize))
662 if (LC_SEGMENT != seg->cmd)
664 if (!strcmp(SEG_TEXT, seg->segname))
665 text_seg = seg;
666 else if (!strcmp(SEG_DATA, seg->segname))
667 data_seg = seg;
2455 struct segment_command seg[1];
2490 if (machO->seg[0].vmaddr)
2492 G_current_load_entry->loaded_address = trunc_page(machO->seg[0].vmaddr - machO->seg[0].fileoff);