From owner-freebsd-arch@FreeBSD.ORG Wed Jul 10 00:40:54 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 30E79D83 for ; Wed, 10 Jul 2013 00:40:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x232.google.com (mail-qe0-x232.google.com [IPv6:2607:f8b0:400d:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id EC3BD1928 for ; Wed, 10 Jul 2013 00:40:53 +0000 (UTC) Received: by mail-qe0-f50.google.com with SMTP id f6so3364049qej.23 for ; Tue, 09 Jul 2013 17:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=FiC9BE4J5TJusV99s2j0KFsaWW5zZDRH1YufJ3E43VM=; b=K4ILKxSrXesgRih7MmCgRmqrfjUtCDV3Kva8t/Da1hGOkdECGJ1GYQOjayNC4fn4Ki tsVDp+0k44By4MvCGK+8UV5/KQi7i3s3FZR1P90N5ZKy7P1SOqJeDgOOnEyPYLSqo/Fh hMKA4j5dvVGdNPrGGtVdI2edfWUI4jWPi93zoKH6ZKu974/JM1jhOEwI3UUEmAvQhMB1 Tdk/xk9mZl8HVYmk8rxw29mBr3COB0tn2GMViZYflhem06Tu4XNhHOXYS8gy+QltCkkz jq0S69KdlhU53YB9Qr+gE1gODc2P3tn0s9yWzfEz6/243voCNcFtTAgKygapUu8D9pAH op9w== MIME-Version: 1.0 X-Received: by 10.224.13.19 with SMTP id z19mr25923482qaz.12.1373416853341; Tue, 09 Jul 2013 17:40:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Tue, 9 Jul 2013 17:40:53 -0700 (PDT) In-Reply-To: <20130709234837.559e3769@bender.Home> References: <20130709090744.0e497e7e@bender.Home> <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> <20130709234837.559e3769@bender.Home> Date: Tue, 9 Jul 2013 17:40:53 -0700 X-Google-Sender-Auth: yj7776td5rJO6v5EOJk5_L-lgw0 Message-ID: Subject: Re: Adding a MACHINE_ARCH note From: Adrian Chadd To: Andrew Turner Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 10 Jul 2013 00:40:54 -0000 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? -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"