From patchwork Tue Nov 6 13:39:35 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: 10670429 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 96BBC13BF for ; Tue, 6 Nov 2018 13:40:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8543C2A3C5 for ; Tue, 6 Nov 2018 13:40:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 725E82A3D7; Tue, 6 Nov 2018 13:40:09 +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 6B70C2A3C5 for ; Tue, 6 Nov 2018 13:40:08 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oU6GvuHK7wTq+butLmxwRtqjduuZbSgr5/NVdWKgdP8=; b=lVgj2PnKLlY43g O07VoFWzG+yxuQwtBAYVSCVr59YnzjbHd+3xHYzfxktX+VkfSI29UhnY8QiWycnicxpfLLsU1AS0+ W20P/DNu1QDZuQ1+k2J14dMZGtTqnDkSg+JpfKxesOeCv6tkj9WLt5T9ijQ48MFp34tYKfypKVT7u EmTmj7O56V/HgFLZFBWc5Fh8jS+gwC0Gbuy8CEdMHfNDh3xcQwRQDrhKBrvkLAw63/AOGMWEu5xaI wawj55+0scHaA4XDq1/5NKP8ImVhBdV5m4515lkubYCElKKoK7UQx1cngrGWJ5xuSCz1tUdTD1ECl AK0vrtKuf5nSVuMoVkhg==; 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 1gK1aK-00065a-V6; Tue, 06 Nov 2018 13:40:00 +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 1gK1aH-00064f-Dp for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2018 13:39:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:Content-Type:MIME-Version: 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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QLo1VBxzsjWeEW0H8a0EXW99OJbflFjh5Kmfu7sbiLY=; b=HUo4uVaxamunSwoMTqBf9bc2W 6oHCzijb9l0mmC6MsjbZ4UKWqy4oq/gEFYOUZNiPOQeTDEWZOxJUpNDHZ/w9mkjeimlZJsVzWM0lO tYz1KmkM1tARqAZJUa5ypimpn+fmJU6ML6ePIXiF7EMZLXh7YMAedMuXxgg0bg9Z+rW2c=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:52558) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gK1a0-0000Yy-RV; Tue, 06 Nov 2018 13:39:40 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1gK1Zx-00044q-9W; Tue, 06 Nov 2018 13:39:37 +0000 Date: Tue, 6 Nov 2018 13:39:35 +0000 From: Russell King - ARM Linux To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/4] Enable deadcode elimination at link time Message-ID: <20181106133935.GB30658@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181106_053957_618334_6DF00D7C X-CRM114-Status: GOOD ( 11.56 ) 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: , Cc: linux-efi@vger.kernel.org, Ard Biesheuvel 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 This series enables elimination of dead code from the kernel at link time. The changes are mostly ARM specific, except for one change in EFI as the EFI stub must not be compiled with -fdata-sections. arch/arm/Kconfig | 1 + arch/arm/boot/compressed/vmlinux.lds.S | 2 +- arch/arm/kernel/vmlinux.lds.S | 10 +++++----- arch/arm/kernel/vmlinux.lds.h | 18 +++++++++--------- drivers/firmware/efi/libstub/Makefile | 2 +- 5 files changed, 17 insertions(+), 16 deletions(-)