Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6015495rwl; Wed, 22 Mar 2023 05:34:17 -0700 (PDT) X-Google-Smtp-Source: AK7set9661qmHqrigMyR3E014hzFKEa1xw+62klrqWb6GC8zmL2m2lGfCCvJjwzuVQtBToUkxr/I X-Received: by 2002:a17:902:d2d2:b0:1a0:616d:7618 with SMTP id n18-20020a170902d2d200b001a0616d7618mr2814977plc.51.1679488457752; Wed, 22 Mar 2023 05:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679488457; cv=none; d=google.com; s=arc-20160816; b=WNG97gMGTp7a2BniSmbvgPfmI4lC4n0zYsRvd2fwnvgyR5BCzX1b4kuNbfXmE30ZiM evVNFOcnanmEGAxKBpuioSNqAZjwHyJKdloXAKYclHxzKn8z/GsDA+m1SuVZJ+UUua/F 0a3NX8MKSv+adOH+ot2aPhlxrJCJNTN5fC/TqYcXriBbiPy0FvgvNRAR5JdKTl35jo4U PWrvqsJIcR/mg72X3cpuvE+5ZqIusOhExX5hhoSD+7wLPxS+xR26kwmJ6gQ+VbNy84ZM hAJJ6h8DR+DZ4/1FQcI7q3HfAnRGawFsxEtn+iZuOJ7Z0Pc4pPd1xxKSGtM9BQ0/iKTt jvqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=tDDqvhOqtZEyvYrN65Fq3IVZmxsnChs5AITNPU82Ohc=; b=ls1I7CbpTMPaid8gbYyVyKxga4DSBSfhiJedg953TGfLgiIMBD5YwgThV0MNMNLbJl 4O2NzSjtJMJ7J6tTQZ8tUoXf3NF2086uMxdORL0yEvzqMt724EdeutKJZAxsHmAHCQuV DTlzfxFxsIsqs8psGqxxNGm1qB6MEudeP6gw9SxQ0TOp3W3u3kPx65oSqIn6UqxI4T3n 8pIMMmuWW+uypFn7yOECPZEz1GxPQV5VjN8Pkm7zNBsuZpFepkJcxx+TCIhq2DWuI0Ix SIPadEWeWwLoRieuh5JQFjpSn3NUtd8kw9JaNviE+UIqk5u86K3fCgsOQMxnJ2ZJXTN9 MOtw== 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 p3-20020a170902e74300b001a1956e542dsi11026959plf.340.2023.03.22.05.34.05; Wed, 22 Mar 2023 05:34:17 -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 S230272AbjCVM1e (ORCPT + 99 others); Wed, 22 Mar 2023 08:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbjCVM1b (ORCPT ); Wed, 22 Mar 2023 08:27:31 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D76F3430F for ; Wed, 22 Mar 2023 05:27:30 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4PhSR374XHz4xFc; Wed, 22 Mar 2023 23:27:27 +1100 (AEDT) From: Michael Ellerman To: mpe@ellerman.id.au, Nathan Chancellor Cc: npiggin@gmail.com, christophe.leroy@csgroup.eu, erhard_f@mailbox.org, ndesaulniers@google.com, trix@redhat.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev In-Reply-To: <20230118-ppc64-elfv2-llvm-v1-0-b9e2ec9da11d@kernel.org> References: <20230118-ppc64-elfv2-llvm-v1-0-b9e2ec9da11d@kernel.org> Subject: Re: [PATCH 0/3] Allow CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2 with ld.lld 15+ Message-Id: <167948793442.559204.2964050663889516909.b4-ty@ellerman.id.au> Date: Wed, 22 Mar 2023 23:25:34 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Wed, 15 Feb 2023 11:41:14 -0700, Nathan Chancellor wrote: > Currently, CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2 is not selectable with > ld.lld because of an explicit dependency on GNU ld, due to lack of > testing with LLVM. > > Erhard was kind enough to test this option on his hardware with LLVM 15, > which ran without any issues. This should not be too surprising, as > ld.lld does not have support for the ELFv1 ABI, only ELFv2, so it should > have decent support. With this series, big endian kernels can be built > with LLVM=1. > > [...] Applied to powerpc/next. [1/3] powerpc/boot: Only use '-mabi=elfv2' with CONFIG_PPC64_BOOT_WRAPPER https://git.kernel.org/powerpc/c/d1c5accacb234c3a9f1609a73b4b2eaa4ef07d1a [2/3] powerpc: Fix use of '-mabi=elfv2' with clang https://git.kernel.org/powerpc/c/7c3bd8362b06cff0a4044a4975adb7d71db2dfba [3/3] powerpc: Allow CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2 with ld.lld 15+ https://git.kernel.org/powerpc/c/a11334d8327b3fd7987cbfb38e956a44c722d88f cheers