Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2018 15:34:00 -0500
From:      Justin Hibbits <chmeeedalf@gmail.com>
To:        "A. Wilcox" <AWilcox@wilcox-tech.com>
Cc:        Nathan Whitehorn <nwhitehorn@freebsd.org>, Sean Fertile <sfertile@ca.ibm.com>,  marklmi26-fbsd@yahoo.com, Ed Maste <emaste@freebsd.org>,  FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: From LLVM: I got a note that LLVM plans to remove PPC64's V1 abi support; I'm asked about what support there is for the PPC64 little-endian/V2 abi (see forwarded message)
Message-ID:  <CAHSQbTBUnc2gubKFiDrCkhbKpLamr2dRyesB5iHD2o%2B=79NS5w@mail.gmail.com>
In-Reply-To: <7e000df1-6f91-b255-3548-3faa2968d17e@Wilcox-Tech.com>
References:  <AEFDB8FF-1330-4F4C-BC46-0B32F2015289@yahoo.com> <bug-31716-7604-7aL4KdUH2e@http.bugs.llvm.org/> <OFB623A0BD.2F031A77-ON0025825E.0064A0F1-0025825E.0064F3B5@notes.na.collabserv.com> <ccfee7e9-ffc2-3e68-2413-afac3a27dc1e@freebsd.org> <7e000df1-6f91-b255-3548-3faa2968d17e@Wilcox-Tech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 28, 2018 at 3:17 PM, A. Wilcox <AWilcox@wilcox-tech.com> wrote:
> On 03/28/18 13:38, Nathan Whitehorn wrote:
>> Is this big-endian support or V1 support being removed? We support
>> the V2 ABI fully on FreeBSD, but not (yet) little-endian. Like on
>> Linux, the default ABI on big-endian will likely remain V1 for the
>> indefinite future,
>
> This is an important distinction to make (big-endian !=3D ELFv1, and ELFv=
1
> !=3D big-endian).
>
> But do note that on Linux, the musl libc (in use by distros like Alpine,
> Ad=C3=A9lie, postmarketOS) only supports ELFv2, even in big-endian mode. =
 And
> as the maintainer of Ad=C3=A9lie using it as a daily-driver on an iMac G5=
,
> it's definitely something you can use (the only breakage I've seen so
> far on Linux is the PCRE JIT ignoring __CALL_ELF and inserting function
> descriptors anyway).
>
> So I wouldn't discount moving to ELFv2 ABI on BE if that is necessary to
> keep LLVM happy.  It'd be some effort but it should work.
>
> If this is really something FreeBSD is interested in, you might even
> manage to convince me to put on my ports hat again, to help get the JIT
> patches in that are needed for upstreams that went comatose.
>
>
> Best,
> --arw
>
>
>> however, and it would be good if it were at least simple to re-add
>> support at some later date. -Nathan
>>
>
> --
> A. Wilcox (awilfox)
> Open-source programmer (C, C++, Python)
> https://code.foxkit.us/u/awilfox/
>

Moving to ELFv2 is predicated on having a complete toolchain
supporting it.  Right now, base gcc+binutils only supports ELFv1, and
we cannot upgrade to newer toolchain yet.

- Justin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTBUnc2gubKFiDrCkhbKpLamr2dRyesB5iHD2o%2B=79NS5w>