Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8096340rwp; Wed, 19 Jul 2023 05:19:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEIrmetABSNLJPovsbLSYkDOgVRmoNB8jQAuaXxCawr08/MipGYReYRudXsziSVM/ZzsSBV X-Received: by 2002:a17:906:2457:b0:987:5147:7498 with SMTP id a23-20020a170906245700b0098751477498mr2212841ejb.32.1689769182196; Wed, 19 Jul 2023 05:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689769182; cv=none; d=google.com; s=arc-20160816; b=KkPnfXj2j/3DbGJGjENpTpOGRSKDF6e8Dny49lT0W4YHGrg9hKkJvON4FocXs/2K3C lJUY885VSuDbbDX7JMpTbdkSIeEH1uiP1P9zup1BJJkxg2O9JtfoyfJjl5x1Xto1COO1 bq+FXDyxbGNsrC75A54w4wGjc0b/sAGR8/u7cZFovi2WMcw/KJhO7MeDKgsP03Bf2JW+ WL1En63PRmgPqPbrvXddUza/ft4XaYTEEEVhwqvhYuKjo6j3W4Vm9S0DHwSot7PfN0uj juDJobj2lPPbnsl38CHXYHO9Ib7xEQVai1Pg8vWZom3Z5i+rfynsvDbpdCaXkvqTnUUB bmHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=cH2/nzVcXEEHjVV40m2k9jPCJ614RcL25Duhv634PGw=; fh=kck/MLFCSlcEwpr0NvtpA7BJr6EjQYJ44bIRo/eceG0=; b=GaQ8bTkUZpTaZtoICChrXZ6aNXs0L3esCBNi9wF4dtIa+U/xJykNyF9fIpayAx9/90 2+t31kSmIEGMNOXHjqcgKNmQEPBZlw70/0aycPtWAgzENHw/CK0OYjBkXnE9AqLf4xy3 rAMji0E7KGLX3mX6eoV4y398CUFQHRrdJUjdrtSywRi1YJr35cXERQ+o9aV6Ktme/mdg 0lSQQl/dmaksmCyjzxysJHF/RYU6l49gZbINkj7GiZnMCnvYvp43AyMOIjjZYLrZH0iM 1Psl0HtLTyDqknxR6nxX4nBp5qqoLJ9Ly3VV+zR3KWb4fVvvANmHgL/ibziE3YSCIxmu EA4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Fc5drKTf; 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 mb13-20020a170906eb0d00b009936f6d726fsi2941144ejb.169.2023.07.19.05.19.17; Wed, 19 Jul 2023 05:19:42 -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=@ellerman.id.au header.s=201909 header.b=Fc5drKTf; 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 S229673AbjGSLzr (ORCPT + 99 others); Wed, 19 Jul 2023 07:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjGSLzq (ORCPT ); Wed, 19 Jul 2023 07:55:46 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9894CC7 for ; Wed, 19 Jul 2023 04:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1689767738; bh=cH2/nzVcXEEHjVV40m2k9jPCJ614RcL25Duhv634PGw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Fc5drKTf7dgjP2S8xnSmZmYb6Ow3YvMz4iFLngt/IYHl9ErC5RiBRV09v2oNpQB1E t/+stHPHA9OAWnn457+dDLZlEfZ8/yz8HEgWcLpdrFASgLsypkJ/Vf3t3LvzxCi1wj 3Cxe+V/iSsVumiXIB7k0y5ulZLLB6YDHFLkRMI9z+lxz2/RgLVa+PVkSK69nPNVCvl ArjyEEXsSb/XTkS9SELs9/Ge4y1hsaqsDmltqxWh4onpLKzEugz5bF20s4lgdtSfGJ +BserTOUifRmKLhqrG1LgTiHlBIGSeMLKlJc1+V5qGt5kv+GMCgoKcd87aYG61NE4Z TID90ajrGC1vg== 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 4R5Z5Q3Tzzz4wb0; Wed, 19 Jul 2023 21:55:38 +1000 (AEST) From: Michael Ellerman To: John Ogness , Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/build: vdso linker warning for orphan sections In-Reply-To: <87o7k9l2oj.fsf@jogness.linutronix.de> References: <20230609051002.3342-1-npiggin@gmail.com> <871qh6wcgb.fsf@jogness.linutronix.de> <871qh5jrz2.fsf@mail.lhotse> <87o7k9l2oj.fsf@jogness.linutronix.de> Date: Wed, 19 Jul 2023 21:55:34 +1000 Message-ID: <87ttu0i095.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 John Ogness writes: > On 2023-07-18, Michael Ellerman wrote: >>> ld: warning: discarding dynamic section .rela.opd >>> >>> and bisects to: >>> >>> 8ad57add77d3 ("powerpc/build: vdso linker warning for orphan sections") >> >> Can you test with a newer compiler/binutils? > > Testing the Debian release cross compilers/binutils: > > Debian 10 / gcc 8.3.0 / ld 2.31.1: generates the warning > > Debian 11 / gcc 10.2.1 / ld 2.35.2: generates the warning > > Debian 12 / gcc 12.2.0 / ld 2.40: does _not_ generate the warning > > I suppose moving to the newer toolchain is the workaround. Although it > is a bit unusual to require such a modern toolchain in order to build a > kernel without warnings. I didn't mean that you should move to a new toolchain to avoid the warning, I was just curious why you're the only person to see it. I regularly test with a gcc 5.5.0 / ld 2.29 toolchain and gcc 13.1.1 / ld 2.39, and I haven't seen the warning. I tried a bunch of others and can't reproduce it. Can you confirm that this makes the warning go away? cheers diff --git a/arch/powerpc/kernel/vdso/vdso64.lds.S b/arch/powerpc/kernel/vdso/vdso64.lds.S index bda6c8cdd459..286e1597c548 100644 --- a/arch/powerpc/kernel/vdso/vdso64.lds.S +++ b/arch/powerpc/kernel/vdso/vdso64.lds.S @@ -85,7 +85,7 @@ SECTIONS *(.branch_lt) *(.data .data.* .gnu.linkonce.d.* .sdata*) *(.bss .sbss .dynbss .dynsbss) - *(.opd) + *(.opd .rela.opd) *(.glink .iplt .plt .rela*) } }