Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp784606rdb; Thu, 22 Feb 2024 22:33:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWpA/aM+BDRWje5qnAfjBFvnOKiQnVwxPR5skzxD0u5LiJwZbgi/4uYs3Nk6rlnG32cUBSFjwUyYsOn0RIMmS3YPVcgoT3QdyyBjZPp/A== X-Google-Smtp-Source: AGHT+IH1VwfMAXMRn3B7CmAHJODRSo6A6zWKkEGOZfnVti1hl/V+zxnt3PR8+o82HvaT11jKg5ut X-Received: by 2002:a17:903:2347:b0:1dc:29df:277e with SMTP id c7-20020a170903234700b001dc29df277emr1102415plh.47.1708669988966; Thu, 22 Feb 2024 22:33:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708669988; cv=pass; d=google.com; s=arc-20160816; b=VXnTbJ5Qx/Xq8YrXR/4Gko4jLIQY9y+qhfBUXX3uOIoZLIk8LQ8JcvKUUP6OqzPdw+ Hn5tgZUwoWyoH+GLn0X2ePCy25GyfJlI41HOkJnLuDp8gOWYILGAs1fKMrQqkqpenRwK eWbQCb239LkuS7mFPpSqorxH9XFFDPsNz0JwEFn0dYGqPTqZMm+499LYMGnegxIkllQk Gcpv8KOTmJJM2fbOCi6gBTIbl4xUkCH+bYiew9d8usNXLgt0D5Rju71LrHh1YIiwH3O/ 2UfeUDqUg1dNb04VFfdTi9Fjn2ZxNvfGlSGW7HLTU1ZW1V2NKDsENp4TLg9J8kQLocE3 MTFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=4/sLXmisMYq1s+yoX1YTX4ulIOX8nOWk06ZkTuIwNvs=; fh=FEzmLIU/8t66XrH6+VafM2sdawgjVh4GM84pcSWWPp0=; b=fJ3Q86C01o4K5QJ8njNiYZCQWjS9cVpvCcbDDt+3EikiJE/pzeqgBoUvjYoxaIpnsv EDTKNPtIJTC8B9qMeYlJs7bWTIorMJ4Xiv7IEyo/uEROakK1aD/HZqH5wDuByIE3qwlD WHdawNKd36VpL8x5Hr4Ntz1Q464L3bbX/BcAN4IJ01wR+luh82FeazdupzpSFBYhT1/9 5/hLTNQyQlAfYnzTNvhy/AkDhqp0Zqbc/fGcNNffuSDwkCJD/zlT6OHxc3zPbkLY/rmd dljGnox1hwcdhSAbndYlM2l92hPDXTS9zmaVUOjG4xWVMnFrcsRPcqNYGQzFJEc95Z0+ jQ6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=g34vepeG; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Mfes6p7w; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-77836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q9-20020a17090311c900b001db9e68b35asi11550052plh.363.2024.02.22.22.33.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 22:33:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=g34vepeG; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Mfes6p7w; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-77836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 36D34B23DE6 for ; Fri, 23 Feb 2024 06:33:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BE4E12B7A; Fri, 23 Feb 2024 06:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="g34vepeG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Mfes6p7w" Received: from fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C61C2125B3 for ; Fri, 23 Feb 2024 06:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708669977; cv=none; b=gwM7ozdL7Tt7fiLSu9/lx3Fr7XCSVZV4W+9DloiOh/bJLCXRn4nzRNW+ZSVmTZ/fGEIca3lt5+R1AZHO8eBK2tTY5QTIeRa/46UwQcQFXr5wTnB9cY7SGonGuNfREwva2lWVTaje9nfEr8iqedtcVDM9jCATkdezO5GPpDhHppI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708669977; c=relaxed/simple; bh=YVTcHhINAplglABGufyOgS4DKfhL9lhLuTXhvwCnU24=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=lNjQVMbrdxpzZAz+Qp6Kwb/RZIWfdVGmweOGlihlSdtnbkFNil5EXFd5FkdMMxhBLJ6wzKmXLJ/hmT+Wlxt03HF8+E+7wnIyhYjgUeH80W1OXL8wchxj5je3TBmXhZquSBD5izeI+kpfsPEermc46p1Ert8e+FnwFg3xYBPFSWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=g34vepeG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Mfes6p7w; arc=none smtp.client-ip=103.168.172.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id B255913800E3; Fri, 23 Feb 2024 01:32:54 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 23 Feb 2024 01:32:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1708669974; x=1708756374; bh=4/sLXmisMY q1s+yoX1YTX4ulIOX8nOWk06ZkTuIwNvs=; b=g34vepeGSsw6B6vJEwhpkxN5K0 bK8CMrOCF0bZhwabWPyETtN8lmeCwN2CsPPm89hO+itIXz0PXtdqZ8fihLl/p6O3 /Kz5QdCy+E8doVx+pDrCSf7cpa6MH4ppJ/1oS6Onr3XrqJjHAtz9EK7LZmW8tz0U BgCRZB/xJdOR03qAbqKD6shQTCOWNJlgR80U+qoXzls1RmmoHV46wDn085KoDc4F /o/tokD86ED69+AE4xQ2MjbbL6xnyONxsBxZTOzxVsJxBlih8lYKrakt07RYB/Ng N+fyaedMxJ5iD8nbmztVtE9QvVt4sUmye8/9Rb9Wi5atBm2FcweBs/HX1TWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708669974; x=1708756374; bh=4/sLXmisMYq1s+yoX1YTX4ulIOX8 nOWk06ZkTuIwNvs=; b=Mfes6p7w6OVJQbYFdSPWiwbfvnoqq7puFUs+lgAdfhFq ekeC8YQyqvw/fxu+AymJL0gKW4rVfWvY+Nq/79qHSykAoy2fkR1F5wI8XEq592er 89iHSOWtoHk3CIQjnvSpVUKbWYAA7ZdrnfK9QkKndxv6d+Ta1fwE+WzG2EahZB3p eeP1cptF/ec6vEQclKGlb88qPxzBzLvh6akXtREqTs5iMXd40ygTGhoCfRx0qLy/ RUHLWn/D4eKwnVMllpa5ak7wnCMzwLXy37H93PhDXddIQnezBZekYerJMn8Rjj2c ay7mTyNa33jHYk44BBz3HTRiFnudQl4sBbApcsxcDw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeehgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A5D40B6008D; Fri, 23 Feb 2024 01:32:52 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <7396cdc0-e878-48fe-85b9-d88611d28444@huawei.com> References: <20240220081527.23408-1-liuyuntao12@huawei.com> <1342759e-b967-4ec4-98d5-48146f81f695@app.fastmail.com> <38c09a4b-69cc-4dc5-8a68-e5f5597613ac@huawei.com> <30b01c65-12f2-4ee0-81d5-c7a2da2c36b4@app.fastmail.com> <4e9396ca-460b-49ca-818e-73f0a8997b15@huawei.com> <58297ee9-4f33-4b3b-bd00-b44e86965892@app.fastmail.com> <7396cdc0-e878-48fe-85b9-d88611d28444@huawei.com> Date: Fri, 23 Feb 2024 07:32:32 +0100 From: "Arnd Bergmann" To: "Yuntao Liu" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Russell King" , "Andrew Davis" , "Andrew Morton" , "Kirill A. Shutemov" , "Geert Uytterhoeven" , "Jonathan Corbet" , "Mike Rapoport" , "Eric DeVolder" , "Rob Herring" , "Thomas Gleixner" , "Linus Walleij" Subject: Re: [PATCH -next] arm32: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION Content-Type: text/plain On Fri, Feb 23, 2024, at 02:39, liuyuntao (F) wrote: > On 2024/2/23 0:04, Arnd Bergmann wrote: >> On Thu, Feb 22, 2024, at 12:24, liuyuntao (F) wrote: >>> >>> The position of the caret has been moved below the right brace >>> of { KEEP(*(.vectors.bhb.loop8)) }, indicating that lld is treating >>> the entire `KEEP(*(.vectors))` as a file name. This could potentially be >>> a bug in lld. Perhaps we can temporarily >>> enable the DCE option only when option LD_IS_LLD is disabled, >>> like risc-v: >>> >>> `select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD`. >> >> I would really like to see this working with lld if at all >> possible, as it allows the combination of gc-sections with >> lto and CONFIG_TRIM_UNUSED_KSYMS. >> >> I experimented with lld myself now and I did get a booting >> kernel even without the the KEEP() on the vectors. I also > > When the kernel booted up successfully, was config DCE enabled? My mistake. I did have DCE enabled in the kernel I built, but ended up passing an older image to it in the end, and that did not boot. Arnd