Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp330081pxb; Thu, 25 Feb 2021 03:52:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy18uj2iONWerxF9dWFxq9RG9/bqpflNwAvN3x2GO7zj63XTNrNntqcnjkddYno0xnkzHiw X-Received: by 2002:aa7:c150:: with SMTP id r16mr2397752edp.96.1614253927866; Thu, 25 Feb 2021 03:52:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614253927; cv=none; d=google.com; s=arc-20160816; b=GQy189kb2BJvs79ZII7ZXKHpDhefd7suihQN9JBkPrJQGxunXFU51buYaFbYbdZDNZ 0JCoWJyx+zP26DurJkqQ60RUmI6j7+oQD6uVJaa0CcpWBOVl6Qyc1QpnzsmehowriX/8 XDYusEW7H0j48cZExcgijf7tx99Pl9XZSo2zslUd2FyRDrTMIRNoOa6nJ57xfNEGaiwG SATAqLbqQ/d3tyvWJFipKHjKPY4JhSKVCaw8BqgJJrE2wzs+49nFORcr8FXUTlcmSfkT Onk2YNjc+4tGgiTYNeXVbGgB0S3FTmo7GP0YwFja2LY6A8mXMuEJ3IFMDHugdphLtari 2Mlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=HHthiO76VaOjf8vXNutcMdz3GkSJZebPSvwm1Oe9dfA=; b=MqIhROIg38qUJwmuphoVEbJrTSHSoXWxopgf53R0MqMK4HtsCipSfUzg4iEOt0IkPR iIE6ysoqwsUmI0ULY9gzsC24yPu0jOxuavYIKJbGCZN1heJ6nll31bGUr+8OW8Tc2H1u C2NsaE49bNf/jb6UM0Njri65JVV4FdOAfD2MZEA92S3amyk+YukeXls0p6VMiSh+wzDT bmfkrr8/iANbODQK9W1H04yhZNfTwGjSX61I0rB1aX+/8ktCowRQ4bn3CXOz76Q6RNTy pMfuJCwNWFPILNTf7acG/F0NUl9D5z4smdjyOg8jCoCC2elWk+NLOlvwZkhIndUsTdih Rj3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si3052404edu.106.2021.02.25.03.51.44; Thu, 25 Feb 2021 03:52:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235647AbhBYL3H (ORCPT + 99 others); Thu, 25 Feb 2021 06:29:07 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:51607 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235275AbhBYL3A (ORCPT ); Thu, 25 Feb 2021 06:29:00 -0500 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lFEoa-0028Gb-MH; Thu, 25 Feb 2021 12:28:16 +0100 Received: from suse-laptop.physik.fu-berlin.de ([160.45.32.140]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1lFEoa-002Ido-Gd; Thu, 25 Feb 2021 12:28:16 +0100 Subject: Re: [PATCH] [RFT] m68k: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION To: Arnd Bergmann , Geert Uytterhoeven Cc: Arnd Bergmann , Kees Cook , Greg Ungerer , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org References: <20210225111505.1936566-1-arnd@kernel.org> From: John Paul Adrian Glaubitz Message-ID: Date: Thu, 25 Feb 2021 12:28:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210225111505.1936566-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 160.45.32.140 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd! On 2/25/21 12:14 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > While experimenting with CONFIG_TRIM_UNUSED_KSYMS across architectures, > I noticed that this unsurprisingly works best when combined with the > --gc-sections linker flag, which is not currently allowed on m68k. > > Enabling it with this patch shows significant improvements > for kernel size, looking at m68k defconfig with gcc-10, I get > > 4005135 1374302 167108 5546545 54a231 vmlinux-normal > 3916254 1378078 167108 5461440 5355c0 vmlinux+trim > 4012933 1362514 164280 5539727 54878f vmlinux+gcsection > 3797884 1334194 164640 5296718 50d24e vmlinux+gcsection+trim > > There are probably bugs somewhere, but if someone is able to test this > patch and fix any issues that come up, would be a useful improvement > for memory-limited machines. Thanks, that sounds like a very helpful improvement. I'll test the patch next week when I'm on vacation and report back if it works - unless someone beats me to it ;-). Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913