• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/libsa/

Lines Matching refs:seg

677     struct segment_command * seg;
688 seg = (struct segment_command *)(mh + 1);
691 cmd++, seg = (struct segment_command *)(((vm_offset_t)seg) + seg->cmdsize))
693 if (OSSwapConstInt32(LC_SYMTAB) == seg->cmd) {
694 swap_symtab_command((struct symtab_command *) seg, hostOrder);
695 swap_nlist((struct nlist *) (((vm_offset_t) mh) + ((struct symtab_command *) seg)->symoff),
696 ((struct symtab_command *) seg)->nsyms, hostOrder);
699 if (OSSwapConstInt32(LC_SEGMENT) != seg->cmd) {
700 swap_load_command((struct load_command *) seg, hostOrder);
703 swap_segment_command(seg, hostOrder);
704 swap_section((struct section *) (seg + 1), seg->nsects, hostOrder);
706 section = (struct section *) (seg + 1);
707 for (sect = 0; sect < seg->nsects; sect++, section++) {
725 struct segment_command * seg;
735 seg = (struct segment_command *)(mh + 1);
738 cmd++, seg = (struct segment_command *)(((vm_offset_t)seg) + cmdsize))
740 cmdsize = seg->cmdsize;
741 if (LC_SYMTAB == seg->cmd) {
743 swap_nlist((struct nlist *) (((vm_offset_t) mh) + ((struct symtab_command *) seg)->symoff),
744 ((struct symtab_command *) seg)->nsyms, hostOrder);
747 swap_symtab_command((struct symtab_command *) seg, hostOrder);
752 if (LC_SEGMENT != seg->cmd) {
753 swap_load_command((struct load_command *) seg, hostOrder);
757 section = (struct section *) (seg + 1);
758 for (sect = 0; sect < seg->nsects; sect++, section++) {
763 swap_section((struct section *) (seg + 1), seg->nsects, hostOrder);
764 swap_segment_command(seg, hostOrder);
871 parseSegments(struct fileRecord *file, struct segment_command *seg)
874 int i, nsects = seg->nsects;
876 struct segment_command seg;
894 for (i = 0, segMap = (struct segmentMap *) seg; i < nsects; i++)
2554 struct segment_command *seg = (struct segment_command *)cmd;
2555 int nsects = seg->nsects;
2558 if (!strcmp("__PRELINK", seg->segname))
2562 file.fVMAddr = seg->vmaddr;
2563 file.fVMEnd = seg->vmaddr + seg->vmsize;
2565 if (seg->vmaddr < file.fVMAddr)
2566 file.fVMAddr = seg->vmaddr;
2567 if ((seg->vmaddr + seg->vmsize) > file.fVMEnd)
2568 file.fVMEnd = seg->vmaddr + seg->vmsize;
2573 return_if(!parseSegments(&file, seg),
2581 if (!strcmp(kLinkEditSegName, seg->segname))
2582 file.fLinkEditSeg = seg;