From owner-freebsd-ppc@freebsd.org Wed Mar 28 20:34:03 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3932F727DA; Wed, 28 Mar 2018 20:34:03 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E235281967; Wed, 28 Mar 2018 20:34:02 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id z143-v6so5352263lff.3; Wed, 28 Mar 2018 13:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QIyt/cEq5lpdFSX4zKTKTSt58/crO3lBAaIDzI4NiyQ=; b=Iwb2d78hdXoMl6l5opl3PQkJbICZWVVA079X4sHiqyU6W/sGRLiaPbqUUnfSvcCUPg mD62ZKWtysoIQZyYS0WHh1mnFNWmRIDGQfpNkVq9upl+fZu9+QeWv7P1ZZbPzDqrhqW7 4RuKxhhJCqrj7kIAnF5f1fQVBtPvQRmoJ9Lc4YgbFuA6sheytS0VECVRAvUAlsMgYPrt sVjcjh/GVRf83jjLI5vjYPQ242SZ5LWm0sfGHcSIXJwBiydAMg9y1LIa2h/+v9wiiuR7 ylffwuCs7GzcflLZCMitZsTzTZUCHMkwx+TeGiplILfVGtaqM4a9wdnunVc1JhsIkcsH 5Vow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QIyt/cEq5lpdFSX4zKTKTSt58/crO3lBAaIDzI4NiyQ=; b=ZSbjvjoTnGew9jtHDz5WPafZavMTrEaipfqcISmnTBKoC/LVDbiaMqf7m2SlUF8tlx gVz62C4DyhRa9fR7Aq9xBKLogMj+L9Ogdbg3dkfruYKimE8V8cWA5LJCSJYb/mUVp5EJ U7PyOivX176ydKOB5jVGHCHAU1VmpScfEFqFoB0bxDxzHWmVxK9xs47UQmsDl3Pdo1Oz IX/tJr9I/IH04os4h8bap8ARVQKtronNj1rmm+e1Lw2P2kSX1LS7N70qh8FKu/ZxKW8Y qnGGyfIby9JRjuYm28SAjBh8xWbGSjVAltuAZt5Q8f1f9+wsS6XcY65fRCkbcc5I+nRp 5EpQ== X-Gm-Message-State: AElRT7FiyhLhwF4jAu8WyALEpxEfbR8XBwnoSbTtlHJm/H3lLnap/Gjx Mkg2hCcB1wD2UxHb7PyTi4/VrryvN3BhdhqH/yU= X-Google-Smtp-Source: AIpwx485uqbXpVL/aAb6n5luPns+naaDrvCj6Z9ikRjuxqcQuNZYJZogjLIhWDTl2LrNKqkcAf2a+G8TCEB1H/RNJ4k= X-Received: by 2002:a19:2044:: with SMTP id g65-v6mr3497915lfg.0.1522269241346; Wed, 28 Mar 2018 13:34:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.85.13 with HTTP; Wed, 28 Mar 2018 13:34:00 -0700 (PDT) In-Reply-To: <7e000df1-6f91-b255-3548-3faa2968d17e@Wilcox-Tech.com> References: <7e000df1-6f91-b255-3548-3faa2968d17e@Wilcox-Tech.com> From: Justin Hibbits Date: Wed, 28 Mar 2018 15:34:00 -0500 Message-ID: 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) To: "A. Wilcox" Cc: Nathan Whitehorn , Sean Fertile , marklmi26-fbsd@yahoo.com, Ed Maste , FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 20:34:03 -0000 On Wed, Mar 28, 2018 at 3:17 PM, A. Wilcox 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