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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1265C3DA7F for ; Mon, 12 Aug 2024 15:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OX2YxCLbB2YLRKPPMAa2K017NZPOzu80/T3MRpTE8kQ=; b=pT0x10tY3Cfmr/O5fTgB8ahibT RO3vn5nig51SonhIKeqER/NM+GdUlyCUskUamcNr7++t6uray4CU1UNWxQFfdpP6vNu4aPODE9Nju gdRuMCmBGWD0diKKEJMifQ3VxAh9++NNqeXHcW7kjlhbR1H73L+1v3cEMXuYwF00iFQ0PVkM2xNii gho8yyog3bLOGi0qNrREAewLX888q+H+sQzaaCrShFkdHX+1IcCp7ulRyXie5R8hqzPMp6CB7iX+w LRDr4i4iSkFxw7xpdWfzCXo4HVIxwcABA6CagJ5/rCcC+SSzfDyO0So8gnQPdSre312FK0pTKW85a wgui5zRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdWdj-00000000gaS-0BbT; Mon, 12 Aug 2024 15:07:19 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdWd7-00000000gTL-2R6j for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 15:06:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OX2YxCLbB2YLRKPPMAa2K017NZPOzu80/T3MRpTE8kQ=; b=SsSu4J2JaMqE78Wm5orCsihZ1Y NVbvEmLPNskF9gT9W1ujQr6hc7tFs/D5+We5vniiUKmWrlWw28Cx4YhB0J2g8hm5kgVcffh5GlEJy D0xxcvIjEU4dTcnpu7TQQuo9ZnFBft5ubdv8BoGNQV6cXH6tJcXWQiLoMXHo4edSmHzipEdSCqbCr n+TW1Wq4GBpdxG2Aq/AyUAjIe0wt7k0SrW+G1Hr3rZmgW3Wfc/IAtxflUCa3PBCUr15ynY1waPYiH EMX7phVPycrQdg9PSqzDBd5atbaPtfyxM/2a1wryqDjt9yui65VK9YA3yLueV81C4/2niFndSWMeH iacW5q6A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33634) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sdWcx-00047v-30; Mon, 12 Aug 2024 16:06:32 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sdWd1-0000Yf-PC; Mon, 12 Aug 2024 16:06:35 +0100 Date: Mon, 12 Aug 2024 16:06:35 +0100 From: "Russell King (Oracle)" To: Harith George Cc: Yuntao Liu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, afd@ti.com, linus.walleij@linaro.org, akpm@linux-foundation.org, eric.devolder@oracle.com, masahiroy@kernel.org Subject: Re: [PATCH] arm: Fix build issue with LD_DEAD_CODE_DATA_ELIMINATION Message-ID: References: <20240808123556.681609-1-liuyuntao12@huawei.com> <54f87fcb-74da-4b48-a12e-4c7d9fa2870e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54f87fcb-74da-4b48-a12e-4c7d9fa2870e@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_080641_642415_017CCD67 X-CRM114-Status: GOOD ( 18.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Aug 12, 2024 at 01:21:59PM +0530, Harith George wrote: > On 08-08-2024 18:05, Yuntao Liu wrote: > > There is a build issue with LD segmentation fault, while > > CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is not enabled, as bellow. > > > > scripts/link-vmlinux.sh: line 49: 3796 Segmentation fault > > (core dumped) ${ld} ${ldflags} -o ${output} ${wl}--whole-archive > > ${objs} ${wl}--no-whole-archive ${wl}--start-group > > ${libs} ${wl}--end-group ${kallsymso} ${btf_vmlinux_bin_o} ${ldlibs} > > > > The error occurs in older versions of the GNU ld with version earlier > > than 2.36. It makes most sense to have a minimum LD version as > > a dependency for HAVE_LD_DEAD_CODE_DATA_ELIMINATION and eliminate > > the impact of ".reloc .text, R_ARM_NONE, ." when > > CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is not enabled. > > > > Fixes: ed0f94102251 ("ARM: 9404/1: arm32: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION") > > Reported-by: Harith George > > Suggested-by: Arnd Bergmann > > Signed-off-by: Yuntao Liu > > Link: https://lore.kernel.org/all/14e9aefb-88d1-4eee-8288-ef15d4a9b059@gmail.com/ > > Build tested. Solves the earlier build issue I was seeing. > fwiw, you can add my tested by tag if needed. > > Tested-by: Harith George (a) please see the note in my signature below. (b) this tested-by needs to be collected by the submitter before it gets into the patch system. (c) it needs to get into the patch system. Bear in mind that as a result of (a), it's going to be better to get it into the patch system sooner rather than later - I am expecting there to be a period of time (weeks) where it will be impossible for me to read the screen... -- *** please note that I probably will only be occasionally responsive *** for an unknown period of time due to recent eye surgery making *** reading quite difficult. RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!