From patchwork Tue Nov 6 13:40:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 10670437 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8BE8713BF for ; Tue, 6 Nov 2018 13:41:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BCC62A3D7 for ; Tue, 6 Nov 2018 13:41:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 706442A3E5; Tue, 6 Nov 2018 13:41:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F3332A3D7 for ; Tue, 6 Nov 2018 13:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:Message-Id:MIME-Version:Subject:To :From:References:In-Reply-To:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=j3GS5jurY94k+S9LAzIN0JJ7L1Obqafl8PsWKGgTtEo=; b=KLHH3y+BiYuH6c 30ugxuQNx8Xx4aNF63foCqpjHmF9FDkLMstSLfD0p1DxeJqaYRz7jnxI407arT7wM5s2819IQ1kr2 FJ2GZ/FoHcraLgaWigpEEImaK39c+NAE1GrDh6B/q3w3wPFOfPO76/eFSWV33ZgMIUhULFLstF1GF cYqb3RHXVrIZGsoC08Y3dj/az1osZmbA1ARNQqntrRwSO/WqYuS1n5+RGVXs2RmVuVJLwWTyeH6Fm SHBeL7FB5FqY5b0/krJjCV0QWdheTOdJhhAVTHLbU5LTpPSKWxI7s6kFxzsduvqBWLAkwipOU8ON3 kBsoB932VzJ1nbSfR+8w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK1bP-0008G6-J7; Tue, 06 Nov 2018 13:41:07 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK1az-0007aQ-5A for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2018 13:40:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:To:From:References:In-Reply-To :Reply-To:Cc: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=sZqPSgQi4CFT/ndAgv/P630XSdCrU/lQK+XhCYrYTXY=; b=H3TrHO6PD6J26rgxcXLJq66G4U pSvXTzPhURsc7blff1pSgseJq8co0b8R3Y9Azxg5WmnFso87m+/8ypUcE5YvnzcEjxbC1C+JbGDdQ 2luuXKQuKk6qRzffXRxVmQOAFZWpk5+JeTNTnt6D2cOBpDptoI0YHbl7TSW6TmHlA2Fo=; Received: from e0022681537dd.dyn.armlinux.org.uk ([2002:4e20:1eda:1:222:68ff:fe15:37dd]:44132 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gK1ak-0000Zd-B2; Tue, 06 Nov 2018 13:40:26 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1gK1aj-0000p7-Ic; Tue, 06 Nov 2018 13:40:25 +0000 In-Reply-To: <20181106133935.GB30658@n2100.armlinux.org.uk> References: <20181106133935.GB30658@n2100.armlinux.org.uk> From: Russell King To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] ARM: enable LD_DEAD_CODE_DATA_ELIMINATION MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Tue, 06 Nov 2018 13:40:25 +0000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181106_054041_415485_8F569C07 X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable LD_DEAD_CODE_DATA_ELIMINATION, which allows functions that are not called to be eliminated from the final kernel image. Signed-off-by: Russell King --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 91be74d8df65..f7f65d0d5a05 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -82,6 +82,7 @@ config ARM select HAVE_KERNEL_XZ select HAVE_KPROBES if !XIP_KERNEL && !CPU_ENDIAN_BE32 && !CPU_V7M select HAVE_KRETPROBES if (HAVE_KPROBES) + select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !FUNCTION_TRACER select HAVE_MOD_ARCH_SPECIFIC select HAVE_NMI select HAVE_OPROFILE if (HAVE_PERF_EVENTS)