From owner-freebsd-arch@FreeBSD.ORG Tue Jul 9 22:48:52 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 244C29E for ; Tue, 9 Jul 2013 22:48:52 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id 0AF7111E0 for ; Tue, 9 Jul 2013 22:48:51 +0000 (UTC) Received: from bender.Home (97e5f83b.skybroadband.com [151.229.248.59]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id CA5675E1EF; Tue, 9 Jul 2013 22:48:44 +0000 (UTC) Date: Tue, 9 Jul 2013 23:48:37 +0100 From: Andrew Turner To: Warner Losh Subject: Re: Adding a MACHINE_ARCH note Message-ID: <20130709234837.559e3769@bender.Home> In-Reply-To: <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> References: <20130709090744.0e497e7e@bender.Home> <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: 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: Tue, 09 Jul 2013 22:48:52 -0000 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