From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28162 invoked from network); 1 Jun 2020 23:46:13 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 1 Jun 2020 23:46:13 -0000 Received: (qmail 26496 invoked by uid 550); 1 Jun 2020 23:46:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 26460 invoked from network); 1 Jun 2020 23:46:10 -0000 IronPort-SDR: 3C3vDVe2jTY2R8OE4jSqna4D0YcNQ7XUZdkWRTz1TJmu+TthGbSZ5bcljQmpgHAkMEQm7H0wTY NmdqusyYk/lph7xTlUfWF/ikjl0kULni90p+bBNVO9ismZ5Ygc1zgzOmeDGdBCJ3+E4JQ6Gxb5 4oJBH4xi7Yim+ToFTGANfGEC14vMFKhPYpw5OeDTqLxRhncpveijgvC9dcu9v+Ozrc1QA6tMTN +P4BfFezGPJl56PiEewDLzJLgSSvHO833kDzU6I4dAt4Imy2opEp9wETl3C3SU90yjH0RR5ltb Ru8= X-IronPort-AV: E=Sophos;i="5.73,462,1583222400"; d="scan'208";a="49470340" IronPort-SDR: U8xvQsw8q+AP8rcpT0UOMFPVnnVThZmAAGPNM9seGF+20dWTAXtdNtV+qe56cTrvi5KX9anyNh Q8JAj0iS6c1YwAc3gBAjoUn9HMBUnfCSaFXboSBY7iFxlzCnYgqVJXdcpGD+69fSO4hPfdV2pZ rNaxYgx8GHVeFYXFLd6JGlGwdVwFWCgQcGi0KbjhFR4wdXwB16VJTa1PauQgmC8thsTNF1Cdxa 4h/ZsDWbg6CkbUb7PDlR+u7SggN39bXnRA3gNzrL5TEFBcn/C4MI53J0ulGzGcM/AXqngIcvgf FJc= Date: Mon, 1 Jun 2020 23:45:51 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Daniel Kolesa CC: Will Springer , , , , Palmer Dabbelt via binutils , via libc-dev , In-Reply-To: Message-ID: References: <2047231.C4sosBPzcN@sheen> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) Subject: [musl] Re: ppc64le and 32-bit LE userland compatibility On Tue, 2 Jun 2020, Daniel Kolesa wrote: > Are you sure this would be a new port? Glibc already works in this > combination, as it seems to me it'd be best if it was just a variant of > the existing 32-bit PowerPC port, sharing most conventions besides > endianness with the BE port. The supported glibc ABIs are listed at . This would be a new ABI, which should have a new ABI-and-architecture-specific dynamic linker name (all new ports are expected to have a unique dynamic linker name for each ABI, to support systems using multiarch directory arrangements), new symbol versions and avoid legacy features such as 32-bit time or offsets or IBM long double. > 128-bit IEEE long double would not work, since that relies on VSX being > present (gcc will explicitly complain if it's not). I'd be all for using The minimum supported architecture for powerpc64le (POWER8) has VSX. My understanding was that the suggestion was for 32-bit userspace to run under powerpc64le kernels running on POWER8 or later, meaning that such a 32-bit LE port, and any ABI designed for such a port, can assume VSX is available. Or does VSX not work, at the hardware level, for 32-bit POWER8? (In which case you could pick another ABI for binary128 argument passing and return.) > There is also one more thing while we're at this. The 64-bit big endian > Void port uses the ELFv2 ABI, even on glibc. This is not officially > supported on glibc as far as I can tell, but it does work out of box, > without any patching (things in general match little endian then, i.e. > ld64.so.2 etc, but they're big endian). Is there any chance of making > that support official? If you want to support ELFv2 for 64-bit big endian in glibc, again that should have a unique dynamic linker name, new symbol versions, only binary128 long double, etc. - avoid all the legacy aspects of the existing ELFv1 port rather than selectively saying that "ELFv1" itself is the only legacy aspect and keeping the others (when it's the others that are actually more problematic in glibc). -- Joseph S. Myers joseph@codesourcery.com