Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp379229pxb; Mon, 25 Apr 2022 11:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIlzC68trv6Jk/miBYTU/K2bJzYwMHWuQ8JOjyLOxBHyD2xR5iKL9Wvo5BfVDYiBTqk/1S X-Received: by 2002:a17:902:f544:b0:15c:fa6f:2630 with SMTP id h4-20020a170902f54400b0015cfa6f2630mr10084929plf.110.1650912561835; Mon, 25 Apr 2022 11:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650912561; cv=none; d=google.com; s=arc-20160816; b=VN8RGYe6fIX78yao9lQstXkTJ/1nvZOsn3BUWIjkmvJrimiK3KjCL0Ci/KBH7H6+Ug 1NtFzuEXzyR/4FHGk/e/0iKcQsDQlULNB0LjjhIwY5CYRjrHLIlEbZk7DQEH9J4oGZhN F9hMnNjgOugo0g1W+HiQXsQJI9LNpGz9ECk+NECilTd8qAqfQdUVXAn3YdmoFpvMrjdE AVqd9zkUP47/RseqH2LIXnv3kJ6HSSY+Oh34WypNaMVLTeOLahdXnBqaGraxoXyPjjnW CCOqudmBIGZaVsLtcI027SIsXNHgemfW4Xs1aVALuZGTFqVnkTHnJpGVBCwp/TDSp5tZ SJwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TYv02nqT8LcvMlXJxnWlkxCIRFVS6R35nISm2N1D/HY=; b=mOqflFQMx0ktnsqUXiSZrg1ASxQROF6z9UH905AAJAkXWM2EJKm8aXoj2HfEMX8PIX GXZk3U4ig+Hg0CB+Ueqiy4ky6yBTC+5y4SwaIGoD058ipWlkDKCyx2xWIr94LzrXqH86 l/5O/OfOJx/jjCDLdZBNBA2MyNXoc/t4ceC7lyGP3z0amBKYF7v5qQS2bnzhvRinwjhd hyX/RMK/TbuyRd6cN95JoxmsSgigVvOWnjD5JB1bQWlHPxuPWG/W23mM0txctiIGu513 RKmHeiT3oJzulah1YW1TiIEbMXyIiWk480jjVZcYZgF+rt6kylUn8Ai/QcPQbO1ZWfbN mmnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=CDuL4RLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020a17090ac24f00b001cbae0331f4si36504pjx.130.2022.04.25.11.49.05; Mon, 25 Apr 2022 11:49:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=CDuL4RLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243025AbiDYP4s (ORCPT + 99 others); Mon, 25 Apr 2022 11:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbiDYP4q (ORCPT ); Mon, 25 Apr 2022 11:56:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD4F3A5D1 for ; Mon, 25 Apr 2022 08:53:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A69761142 for ; Mon, 25 Apr 2022 15:53:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AC13C385A4; Mon, 25 Apr 2022 15:53:40 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="CDuL4RLG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1650902018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TYv02nqT8LcvMlXJxnWlkxCIRFVS6R35nISm2N1D/HY=; b=CDuL4RLGyZ7VLwzmCoz+E+9yeneOLARHep/mZG8bYZZbYgLm4jYFeO1Upbf+ZL1mrm8WHD +65bni3Fgc9uise2MPPTDbelMDc+9qBBvgzEYIE+FpaBQIESoGHzw6eqErisxDORGuAxAz oXi6xk1XjYM9QSMxlgN9sxs86gOvNB8= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 01f09244 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 25 Apr 2022 15:53:37 +0000 (UTC) Date: Mon, 25 Apr 2022 17:53:34 +0200 From: "Jason A. Donenfeld" To: Arnd Bergmann Cc: Linux Kernel Mailing List , Nick Desaulniers Subject: Re: odd endianness toolchains for crosstool Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Mon, Apr 25, 2022 at 05:39:34PM +0200, Arnd Bergmann wrote: > I can probably do that before migrating to the new machine, but I can't > promise how quickly I find time to start. Oh awesome. Will keep my eye out for it. > > (And also, build ppc32 with --enable-secureplt --with-long-double-64.) > > Can you explain what those are about? Is this related to the ELFv1 > vs ELFv2 difference or something else? Is this needed in both the > ppc32 and ppc64 compilers that each come with both targets? For 32-bit, it is required. From : powerpc (needs gcc built with --enable-secureplt --with-long-double-64, and -Wl,--secure-plt to link dynamic binaries.) And from the INSTALL file it says: * PowerPC * Compiler toolchain must provide 64-bit long double, not IBM double-double or IEEE quad * For dynamic linking, compiler toolchain must be configured for "secure PLT" variant For 64-bit, I'm not sure, but I know that at least -mabi=elfv2 is required, and I think --with-long-double-64 too, according to documentation: * PowerPC64 * Both little and big endian variants are supported * Compiler toolchain must provide 64-bit long double, not IBM double-double or IEEE quad * Compiler toolchain must use the new (ELFv2) ABI regardless of whether it is for little or big endian Taken from . Jason