Lines Matching refs:target_arch
468 const NXArchInfo * target_arch;
483 target_arch = host_arch;
511 target_arch = NXGetArchInfoFromName(argv[i + 1]);
512 if (!target_arch)
720 if (CPU_ARCH_ABI64 & target_arch->cputype)
724 hdr.cputype = target_arch->cputype;
725 hdr.cpusubtype = target_arch->cpusubtype;
735 if (target_arch->byteorder != host_arch->byteorder)
736 swap_mach_header_64(&hdr, target_arch->byteorder);
743 hdr.cputype = target_arch->cputype;
744 hdr.cpusubtype = target_arch->cpusubtype;
745 hdr.filetype = (target_arch->cputype == CPU_TYPE_I386) ? MH_OBJECT : MH_KEXT_BUNDLE;
754 if (target_arch->byteorder != host_arch->byteorder)
755 swap_mach_header(&hdr, target_arch->byteorder);
762 if (target_arch->byteorder != host_arch->byteorder) {
763 swap_symtab_command(&symcmd, target_arch->byteorder);
764 swap_uuid_command(&uuidcmd, target_arch->byteorder);
798 if (CPU_ARCH_ABI64 & target_arch->cputype)
823 if (target_arch->byteorder != host_arch->byteorder)
824 swap_nlist_64(&nl, 1, target_arch->byteorder);
853 if (target_arch->byteorder != host_arch->byteorder)
854 swap_nlist(&nl, 1, target_arch->byteorder);