This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch][Aarch64] Fix multi-arch support in ILP32 mode
- From: Steve Ellcey <sellcey at cavium dot com>
- To: Matthias Klose <doko at ubuntu dot com>, James Greenhalgh <james dot greenhalgh at arm dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>, nd at arm dot com, wookey at arm dot com
- Date: Thu, 21 Dec 2017 15:18:27 -0800
- Subject: Re: [Patch][Aarch64] Fix multi-arch support in ILP32 mode
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Steve dot Ellcey at cavium dot com;
- References: <1513882582.5026.74.camel@cavium.com> <20171221205511.GA38061@arm.com> <1513893541.5026.75.camel@cavium.com> <0e929edb-7c0f-2036-b6b2-1b36e0fae4ec@ubuntu.com>
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On Thu, 2017-12-21 at 23:54 +0100, Matthias Klose wrote:
> On 21.12.2017 22:59, Steve Ellcey wrote:
> >
> > > As far as I understand it from Linaro connect and conversations with
> > > Debian/Ubuntu port maintainers, the correct triplet should be:
> > >
> > > aarch64-none-linux-gnu_ilp32
> > >
> > > If you're revisiting this patch, it is OK to go in, but please use the
> > > agreed triplet.
> well, it's called triplet, not quadruplet. No other multiarch tuple contains an
> explicit vendor field. Do you really want to use that?
> > > Thanks,
> > > James
> > OK, I fixed the triplet and checked it in.
> hmm ...
>
> Matthias
Actually, I got so focused on moving where the _ilp32 was I forgot
about the '-none-' part so what I actually checked in was:
MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32)
This seems to match the dynamic linker name in gcc and glibc:
gcc/gcc/config/aarch64/aarch64-linux.h:
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
This doesn't have a '-none-' in it but does have the _ilp32 at the end.
Steve Ellcey
sellcey@cavium.com