From owner-freebsd-arch@FreeBSD.ORG Wed Jul 10 03:04:21 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9446B416 for ; Wed, 10 Jul 2013 03:04:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by mx1.freebsd.org (Postfix) with ESMTP id 662881F0E for ; Wed, 10 Jul 2013 03:04:21 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id e11so14637273iej.29 for ; Tue, 09 Jul 2013 20:04:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=73QARi8s0s7HjUScjTcK9b9GWxcleOlTTr1uQAvFJao=; b=AlQdH06YN5E1jFjjNnWkYTverj4zIokFZha9pWj5p1bXa2AvbGprjHUfidKvr8dlTo HJtwHraeEn6vthd04zZuBXbyOw4bfrlIL0TPstWj0s4KdE0OoHnvEiz5EB5cVRNnkrA8 aIcXgRtpjVgt0G0lSI/0o7U/FUr/H33/kmJDjlhjKgHxv6UXMilDuVW0Extn2uJe3UCW LWAqXAIPMnbB8o09CN+v0fMapDX/d6Aq7BXZcDxlnxQNBAP2wcbw1v2dQGTRMBUcxClc X5VLyQDqW+Z9OWtlcBkkJVfl+ivJoc7oCgkpaj74kIDoTxVvVEDCgLNZaoT2JyIdL79y ZMXg== X-Received: by 10.42.70.194 with SMTP id g2mr9344602icj.83.1373425455748; Tue, 09 Jul 2013 20:04:15 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id d14sm7876863igz.6.2013.07.09.20.04.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 20:04:14 -0700 (PDT) Sender: Warner Losh Subject: Re: Adding a MACHINE_ARCH note Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Tue, 9 Jul 2013 21:04:12 -0600 Content-Transfer-Encoding: 7bit Message-Id: <5F95D699-78E2-493C-ACB7-D26D70FE3D49@bsdimp.com> References: <20130709090744.0e497e7e@bender.Home> <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> <20130709234837.559e3769@bender.Home> To: Adrian Chadd X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQlC5QIxuO5aEUBg5GQ4kjkJh4XeZ+Vy6Mbu6PZ+jXP9jLBL8vSZPlDQsAdQcPooWKHmIE/u Cc: Andrew Turner , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 03:04:21 -0000 On Jul 9, 2013, at 6:40 PM, Adrian Chadd wrote: > Someone pointed out there's dirty people running 32-bit binaries using > the 64-bit intel/amd instruction set. > > Is this also able to represent that? The elf headers represent that. Warner > > -adrian > > On 9 July 2013 15:48, Andrew Turner wrote: >> On Tue, 9 Jul 2013 08:19:46 -0600 >> Warner Losh wrote: >>> I thought that the ELF headers gave us all the data we needed to know >>> how things were built... >> >> It will tell us if it was for e.g. an ARM or MIPS ELF file, but I'm not >> sure how we can tell the difference between an arm and an armv6 ELF. >> >> With armv6 there are a few changes in the userland/kernel >> interface, e.g. reading the thread local storage pointer is different >> such that an armv6 static binary would not run on an ARMv5 core as it >> uses newer instructions. >> >> Andrew >> _______________________________________________ >> freebsd-arch@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arch >> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"