Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2013 22:29:38 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r255457 - head/usr.sbin/pkg
Message-ID:  <522FE3A2.2090405@freebsd.org>
In-Reply-To: <201309102056.r8AKu1rQ000442@svn.freebsd.org>
References:  <201309102056.r8AKu1rQ000442@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?522FE3A2.2090405>