From owner-svn-src-all@FreeBSD.ORG Wed Sep 11 03:29:48 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5272C84D; Wed, 11 Sep 2013 03:29:48 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from smtpauth4.wiscmail.wisc.edu (wmauth4.doit.wisc.edu [144.92.197.145]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C917E21AC; Wed, 11 Sep 2013 03:29:47 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth4.wiscmail.wisc.edu by smtpauth4.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MSX00500YXQPH00@smtpauth4.wiscmail.wisc.edu>; Tue, 10 Sep 2013 22:29:41 -0500 (CDT) X-Spam-PmxInfo: Server=avs-4, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.9.11.32414, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from comporellon.tachypleus.net (unknown [76.210.62.152]) by smtpauth4.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MSX00JMVZ1EIE40@smtpauth4.wiscmail.wisc.edu>; Tue, 10 Sep 2013 22:29:40 -0500 (CDT) Message-id: <522FE3A2.2090405@freebsd.org> Date: Tue, 10 Sep 2013 22:29:38 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130907 Thunderbird/17.0.8 To: Baptiste Daroussin Subject: Re: svn commit: r255457 - head/usr.sbin/pkg References: <201309102056.r8AKu1rQ000442@svn.freebsd.org> In-reply-to: <201309102056.r8AKu1rQ000442@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 03:29:48 -0000 On 09/10/13 15:56, Baptiste Daroussin wrote: > Author: bapt > Date: Tue Sep 10 20:56:01 2013 > New Revision: 255457 > URL: http://svnweb.freebsd.org/changeset/base/255457 > > Log: > Add support to detect arm vs armv6 > > There are two different versions of the ARM ABI depending on the > TARGET_ARCH. As these are sligntly different a package built for > one may not work on another. We need to detect which one we are on > by parsing the .ARM.attributes section. > > This will only work on the ARM EABI as this section is part of the > ABI definition. As armv6 only supports the ARM EABI this is not a > problem for the oabi. > > Older versions of libelf in FreeBSD fail to read the > .ARM.attributes section needed. As armv6 is unsupported on these > versions we can assume we are running on arm. > Picking a random commit: I don't suppose we can just use MACHINE_ARCH for these identifiers? It encapsulates everything needed for compatibility. -Nathan