From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3185DC4338F for ; Fri, 13 Aug 2021 19:00:21 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E98F61038 for ; Fri, 13 Aug 2021 19:00:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E98F61038 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GmXtp4J8Dz3cWy for ; Sat, 14 Aug 2021 05:00:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=RLK3xUK3; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=google.com (client-ip=2a00:1450:4864:20::12d; helo=mail-lf1-x12d.google.com; envelope-from=ndesaulniers@google.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=RLK3xUK3; dkim-atps=neutral Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GmXt36z4fz3bjK for ; Sat, 14 Aug 2021 04:59:37 +1000 (AEST) Received: by mail-lf1-x12d.google.com with SMTP id r9so12140210lfn.3 for ; Fri, 13 Aug 2021 11:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IkdhgNopT40xrLBIwsMwp7xot6YqUnlD6M0VTKI4Un8=; b=RLK3xUK3bEGpxgGuy1zLolLiG174+veKzBMATo6QlHmzBHc4J7r7zCAZaKUOnlyT3o VhYwJ3Dx9F5/D/0a7GzWt9jrGNDOoZ8bho0cljj00lDq96HAG+bvY8CiNZzDH16DBggV ETTzc+DhoDUeqllck8NFAwJ3jcXzaKpEEY2xzibqOz5w65AVE2C+smEKwXifwitKkWTO HkW00sUVzMhd3rB6NawIR1ih56hnF7xc8LfK28j4eXhMl1zoxI9RY5dFb3t9RAsXtOBg bxbshxVCu038Y8Z2Mm1wI29mVQo4QZ4gAk1o0x21UliOhLVHA3NV09KWJFkC7Td3wn8D LUww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IkdhgNopT40xrLBIwsMwp7xot6YqUnlD6M0VTKI4Un8=; b=GvRXCL+0oh1Cy6OZtD7yREueX8s7w5N2beHgsRNyC8uuP/KfJMhdDP2jC/wLUoFTeD CasG1xICxGlde7ng1nL35OlkSkWVzOn/PBGYN0WE6Mo8A5POXZaZ3pVNBfqZsXhGL4to E9VfVY+XArb97Ur9SFobPbRL5kcFJXmFvdZZmb9EoIuV60Wtgev9kqbsSgr9+XN08gxT 0ItNf/zCnk/larQRPTH6nrVDVgT7J9JYk06cgcKRvmO48ffZ3eiqLC2d1zqBwzZfggV5 +Fl5CtQ5lcXa9BqLZhTP9YNPqn+viEzbm1R8QxoIOlOyuRqDlwycKRbsjtlLMxF5KOme MpyQ== X-Gm-Message-State: AOAM53171ZAYykYs1gh+RyaF5nhSMAglFRd2TA8q5UfgZyyOFnrwHEO+ d69bqHju7q661C7BqMWHL+6507qIPw5ovAPgSW+Tiw== X-Google-Smtp-Source: ABdhPJwsIOeMmC9VnBS83ZxAW4s1cMc3L/OGiW0XzMjYW2gzyzggGU/mQ9BcfuNqon7n/4/vbP5xAEnVWftjqmyMi4I= X-Received: by 2002:a05:6512:3041:: with SMTP id b1mr2588473lfb.122.1628881172555; Fri, 13 Aug 2021 11:59:32 -0700 (PDT) MIME-Version: 1.0 References: <20210812204951.1551782-1-morbo@google.com> <87sfzde8lk.fsf@linkitivity.dja.id.au> In-Reply-To: From: Nick Desaulniers Date: Fri, 13 Aug 2021 11:59:21 -0700 Message-ID: Subject: Re: [PATCH] ppc: add "-z notext" flag to disable diagnostic To: Bill Wendling Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fangrui Song , LKML , Nathan Chancellor , clang-built-linux , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Daniel Axtens Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri, Aug 13, 2021 at 11:24 AM Bill Wendling wrote: > > BTW, this patch should more properly be attributed to Fangrui Song. I > can send a follow-up patch that reflects this and adds more context to > the commit message. Sounds good to me. The TL;DR is that LLD has a different implicit default for `-z text` vs `-z notext` than BFD. We can emulate the behavior or BFD by simply being explicit about `-z notext` always. Or we can dig through why there are relocations in read only sections, fix those, then enable `-z text` for all linkers. My recommendation would be get the thing building, then go digging time permitting. -- Thanks, ~Nick Desaulniers