This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 10/27] [AARCH64] Detect ILP32 in configure scripts.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Yury Norov <ynorov at caviumnetworks dot com>
- Cc: <libc-alpha at sourceware dot org>, <linux-kernel at vger dot kernel dot org>, <arnd at arndb dot de>, <catalin dot marinas at arm dot com>, <marcus dot shawcroft at arm dot com>, <philb at gnu dot org>, <davem at davemloft dot net>, <szabolcs dot nagy at arm dot com>, <maxim dot kuvyrkov at linaro dot org>, <pinskia at gmail dot com>, Andrew Pinski <apinski at cavium dot com>
- Date: Tue, 21 Jun 2016 10:30:39 +0000
- Subject: Re: [PATCH 10/27] [AARCH64] Detect ILP32 in configure scripts.
- Authentication-results: sourceware.org; auth=none
- References: <1466485631-3532-1-git-send-email-ynorov at caviumnetworks dot com> <1466485631-3532-12-git-send-email-ynorov at caviumnetworks dot com>
On Tue, 21 Jun 2016, Yury Norov wrote:
> diff --git a/sysdeps/aarch64/preconfigure b/sysdeps/aarch64/preconfigure
> index d9bd1f8..4bcd8e3 100644
> --- a/sysdeps/aarch64/preconfigure
> +++ b/sysdeps/aarch64/preconfigure
> @@ -1,6 +1,15 @@
> case "$machine" in
> aarch64*)
> base_machine=aarch64
> - machine=aarch64
> + case "$CC $CFLAGS $CPPFLAGS " in
> + *" -mabi=ilp32 "*) aarch64_config_abi=ilp32 ;;
> + *" -mabi=lp64 "*) aarch64_config_abi=lp64 ;;
> + *) aarch64_config_abi=default ;;
My comments in
<https://sourceware.org/ml/libc-alpha/2014-10/msg00639.html> still apply:
test how the compiler behaves instead.
> +if test $aarch64_config_abi = ilp32; then
> + arch_minimum_kernel=3.19.0
My comments in
<https://sourceware.org/ml/libc-alpha/2014-10/msg00639.html> still apply:
use 10.0.0 until the corresponding kernel support is in, then change to
the actual kernel version with the support.
--
Joseph S. Myers
joseph@codesourcery.com