Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp601874pxb; Mon, 25 Apr 2022 17:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7ceqfMN9NskDpbT4g7iz5ydFfIdPeTHa08rkjaY0tJRW/bdukJFeTN8n7BV7jYEEsTbVV X-Received: by 2002:a05:6402:1941:b0:413:2b7e:676e with SMTP id f1-20020a056402194100b004132b7e676emr22449709edz.114.1650934401045; Mon, 25 Apr 2022 17:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650934401; cv=none; d=google.com; s=arc-20160816; b=iUB1WbKK6MZYGn6tSNy0CEV+c5jO2UpHIccRjFjbj2e1F6OpaNzgKTD9Sfa4iYG+Pl 6q3WxshKUQrH02iNHhE3Bvbr/D04JDB4KKa2zOmGa5CDMkBTJGDDTXBwiH1q9Gr9vRas F2hQn6g53t0u5bvsb3CXARuFo0RJKvCOCWjIuoHMDaCN2memyhBa7CMIOAxZo8rmMphl cXLtqvVlUh3Rjr8SqPYgfBYbZzEaHnUkfRrDikg02eQoqDX8k9HAdXDZ38kT70u1pEeJ G8CfGIx70uRtT1dPsVlAF/nz8P/KzOj090iRsBQPlc+3MQclYkyvJyhKi+Cex5S/Lqno wz2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=U9AGhct1MeqeuNFf1NRDyMFafZpQhs3yepjbAdxnJbY=; b=P1DBZG52q+/+DZnSvwXhnpiPGM86OSXZ0oGenEsZSonvqjJBcwjJDla3kfhISS+Ysf D4oENufnE9ohIlAUoYV+S+AsHmUo0OG/TJzo+wRJxbTU0M6Nfs6dQpmUtHmuYZ5OhBeZ WPKIqkoKcAbBfLLzct5JXnEqOoNkpWaMxSl9FuSXYZ4hX1CalPzVTe5mVFzb2QFlYxcw dztfIUCmihlrzTTdMpX/izbkYY5PzFUCvD4TYYRLvsZx6u454dGY1rqB6lIffc9WRmE6 MAZ+vkvTfGN9ksFSen0MSr3dKc/Z87ehrL6x20e37CSQBOvnAsD/lpwABQQMgHh49tRm O6Xw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a170906a10200b006df76385bafsi14126355ejy.79.2022.04.25.17.52.58; Mon, 25 Apr 2022 17:53: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243298AbiDYQSd (ORCPT + 99 others); Mon, 25 Apr 2022 12:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242042AbiDYQSb (ORCPT ); Mon, 25 Apr 2022 12:18:31 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 132C4BE3C for ; Mon, 25 Apr 2022 09:15:25 -0700 (PDT) Received: from mail-wm1-f43.google.com ([209.85.128.43]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1Mk0FM-1oBVZL39ho-00kR8g for ; Mon, 25 Apr 2022 18:15:23 +0200 Received: by mail-wm1-f43.google.com with SMTP id r187-20020a1c44c4000000b0038ccb70e239so12824377wma.3 for ; Mon, 25 Apr 2022 09:15:23 -0700 (PDT) X-Gm-Message-State: AOAM533XWoBne8s4BCBQsd/2cfbv25gqglQPbEuoi11Nq+3WnZDi9JMJ avA6Jl9WmZumhuIlC4eLymKJcuqiBscYcZIltwE= X-Received: by 2002:a7b:ce15:0:b0:38e:b7b0:79be with SMTP id m21-20020a7bce15000000b0038eb7b079bemr17090174wmc.71.1650903323440; Mon, 25 Apr 2022 09:15:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Mon, 25 Apr 2022 18:15:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: odd endianness toolchains for crosstool To: "Jason A. Donenfeld" Cc: Arnd Bergmann , Linux Kernel Mailing List , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:O/OUP1vEVjc9+lC7sva0JxhpQNSFaB0qEirHr6aeblsoKOoBWFG qJ7pq1hn92j1z64GL3YueZmTqV4KeW3D6gBEuCgjh1/CGchYuiONVOPL7D/1wX3g3G9OYMq GXENEZhogJsdLmwpkVBCQhqChJ+1dsp0LAlgDNxlaSF14Cu+2WLMiYJErxIQmpImE5KYih7 /d4VAj6K+MBr/AVvPhFxw== X-UI-Out-Filterresults: notjunk:1;V03:K0:HRvfMhG95Iw=:EBuV31D5CRsf3eaWDT5mys Qs10xNe24GwGIHImN9eBosYZc+UQgbxBsU7JDy6Xq3WIUmfKldjyP1OB6nkdWeU6AjhmF0GtO k4Vse7IRuo3haAmypg4T9Xq4/X5BCpiZvA7N5+19Di6FaTCmdi+PSToAczL8WyUGQdmQ/6Kvb 2nTF5C/U+CAzClKHF78Io2DKbrHlXSDbhAQaHbs/IkPlrRHpzl7MppClZMND2hyD8o+8QVIle tnMMHMz6SBLwaw1RygHVnYkzOiASN+jZA1u6G4btq+isfbo5RDGo2hZvgHRomQ7axZjVvpKhX leNYX5/eHvCOKA4Bga8zd+/ZFlb8a1PPstUOghyZk41p4U0+RhpqNcXwX7NfbPe1EMrxZO1Q+ d6pqvoRTzHwHVfAZhdttGdcennJH5uGLeoVCFydm/qD6K1LLfo2qyW4fn98GCcSfzlDWM/+X+ oiTtOkf/YMDs6pVvYpEU/w/asCmGW82xgdWqilU8kFWJh+eqH5hV8ypOUJOdyZp4dzF1UcCul viKmkRQNAoUpJmjbIWoRESH0bgThvsTdmUfPWybUGfSYCetWuGdRqBZxSbB1yU6CbJF4045Ck eYtKpSwILPUcvhOHIbtyMqvGlyAUQ8IFbEEQkFRlUjJXhxukFoOl/xpEpWysOHNoQIKF1BRhZ AKx8BZVJQB3wI639oTsrQG+O3mwWl4E1fWwQMcM+D0CPpEEnkXJIiM+o/FHwKb/JrOPmHKyhe VXoU+i2hBhBsP2yAwKsbbGIz4qugoPNXuXQwi2P3FfwG/eUuo6h9eIF+WvkDQ+cOvgWoAHDox zHXiiUKL9pM1eEg94g1zSz9dbBXcuaJLh1wEEFrFy6jIZj9h3g= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 On Mon, Apr 25, 2022 at 5:53 PM Jason A. Donenfeld wrote: > > 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 Ok, I see. For all I can tell, the toolchain I built already uses both --with-long-double-64 and --enable-secureplt, as those seemt to be the default for Linux. Regarding the the ELF ABI, I'm not sure how to check, but I think it only does ELFv1, which is the default for big-endian glibc. Arnd