Re: Finding the architectures of a binary
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=Q5eLnc3yu3skwzfpEzrMcuIX7+8lxodTpB/2bSS3VQc=; b=Suz49ExXNsGk/9GdjVhUuiLh4xMx2bfiQLfg1N9z8Ud5gUrPahNTaNDszlfvozqpv7 n8qkHSD0m1DX3VcNRoO1tPQBoyR+p+v2JxMHUqYNdEDNacO/md9Yp3VcfiAxkB4qfCyd G4SOn90d4dp8syKoiBtLmFh+YsSLLdoRFtsWg= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=iAY/WWdNGxF/6AGebJiuak0wW39ZlfIa0NzVCODr2m7Ea1zFZgTaFNwH0BzACL3dyp vSLZr/kybRDvcqKfc9q54WGVjMQnyXf/O9Kixt1DPXaMLjYWXDHkyAjUrUhOTDIrKFXd lNC4nbObqFEKpEgNdB3Mo3o25x48KmQSWNZjE= On Nov 10, 2008, at 7:06 PM, Clark Cox wrote: Thanks. Is it supoosed to be up-to-date and 64-bit compatible? I'm asking because for instance, this line looks suspicious: The ability to run this code as a 64-bit executable. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Mon, Nov 10, 2008 at 9:23 AM, Iceberg-Dev <dev.iceberg@gmail.com> wrote: On Nov 10, 2008, at 4:08 PM, Finlay Dobbie wrote: http://www.opensource.apple.com/darwinsource/10.5.5/cctools-667.3/ misc/lipo.c (*((unsigned long *)addr) == MH_MAGIC || What looks suspicious about it? The magic cookie is a 32-bit value. AFAIK, if you build a 64-bit executable and use unsigned long, it's a 64-bit value. With a PowerPC, I'm not sure you can guarantee that the higher 4 bytes will be equal to 0x00000000 as the magic cookie can be the first 4 bytes of a file (non fat). With an Intel Mac, the issue would be different, since it would assume that the 4 bytes after the magic cookie in the binary should be 0x00000000 instead of the cpu_type. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev