Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1787506pxk; Tue, 1 Sep 2020 07:49:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs+ZF93eKiGc+7H0EMU7h5vpY4aexDy8xsP24dTnV7i/FZ3KCZxVirStaINee3G4M3J6O2 X-Received: by 2002:a50:be82:: with SMTP id b2mr2031214edk.303.1598971797675; Tue, 01 Sep 2020 07:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598971797; cv=none; d=google.com; s=arc-20160816; b=wGZiMTJm3v0mOsFzIEbliSZQfdrBtU829j/QG7kpIIHhA8Oa6MaSnEzAU9rQSnbpf9 cIqgBb17eY05lytr47Z6gsUPc45QSgACtipgPwgWoaxW5p9Ss9ObflmzmJQqvNH+zooU 7zRfHdAhRYgw001UtyaOpzUOu+YQcK2cj8qMm9UxECAoVMRkhpmLQraCdGKwd3u8fSr5 yDy99fVgyAuPfgiBOTDxHBHmnpAoS469KmKtN0fI5T+zeWXYTWkLJLRGxfPDZDt7utOU ECwIu5myXm+uORIYMMK6BPElcuXteI/aIDxNLb8YqLgyTpnbNPs6yNcJRTBIYKiKHe74 VRUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=M8l0IYkR9lCXARzVcRZa526IrTnP/rBGVKVMQNtfffs=; b=kt8DN5Dz++HqBNFbM4QQ+ap1b7rEP6FOHONOGamLkcQ6qy1XVD+nC6SKUYXJc3MJg4 37651Ek0lsa2q++1SiJ+FbBg3vfmWB+a9h9gWJGHetAgIpBhSGXp/ozP4zW+Ko8AH1Nj XrkDYvNeT8+tZnkMhCX7j5VUt4ZCf6xJ1wSBPeKKCjXU94z7x4Ay7EzlFVuOFN7784tD VD5w0fc473UuEb9ZaWZctS+MDnT4IT5Ub80s03SZQ3IYRLEJAYFctiArHUE/LInqp95R 2Aoo7b233ZmcCnD5sfZFi+SG/Maq5CMQCvKbxiTzlI1J/Kns1gWp3xBKnDdSXlc7XCeN +Xkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=ab0zaBJz; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si772401edi.213.2020.09.01.07.49.34; Tue, 01 Sep 2020 07:49:57 -0700 (PDT) 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; dkim=fail header.i=@linutronix.de header.s=2020 header.b=ab0zaBJz; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728564AbgIAOs5 (ORCPT + 99 others); Tue, 1 Sep 2020 10:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727778AbgIALt0 (ORCPT ); Tue, 1 Sep 2020 07:49:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B6D7C061251; Tue, 1 Sep 2020 04:48:02 -0700 (PDT) Date: Tue, 01 Sep 2020 11:47:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598960878; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M8l0IYkR9lCXARzVcRZa526IrTnP/rBGVKVMQNtfffs=; b=ab0zaBJzKo9CmDRi02xrbm+gnkWe8J/+w+saqtYnvnQwfttUPIlNyRvQ5RiMwmEuRd0ejg 7LlaAfq8MkSzBopGRnqC3pfZ5yIIQnavTJfJBKuejdMHD6+8QjU06Yb4JA+pS9jAK82AXB ToxbitAve353b/Xcuy1ZPUYYy/3Lzfi6FkJVE7awXP2hZ0Z/rzFbUQFM4T0KfITA0KB+ER HJ6UfvWR7BV/cn8kRU6SQ18CXQn80X/D1pUJBfcov/hkAu/tJcMhmwtbUbDQ1GckZ03xma oWwS3SlQ4GECEbfgGgqkwzPcflRtLY/jqHo+XL7T+xcMikYVpOvKrZjnautj4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598960878; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M8l0IYkR9lCXARzVcRZa526IrTnP/rBGVKVMQNtfffs=; b=MKS8n47H4Z5BBJb/DfVNo7RJWUc1kvx4xEQnPOoCzFdBod2pGlvAlb48XqfrzKhXSJW+Nt 2nalC9WCLv2Pu/AA== From: "tip-bot2 for Kees Cook" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/build] arm64/build: Use common DISCARDS in linker script Cc: Kees Cook , Ingo Molnar , Will Deacon , x86 , LKML In-Reply-To: <20200821194310.3089815-12-keescook@chromium.org> References: <20200821194310.3089815-12-keescook@chromium.org> MIME-Version: 1.0 Message-ID: <159896087749.20229.1643947752770611995.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/build branch of tip: Commit-ID: 2883352bf801d093a04f269800b48bb8aa2515fb Gitweb: https://git.kernel.org/tip/2883352bf801d093a04f269800b48bb8aa2515fb Author: Kees Cook AuthorDate: Fri, 21 Aug 2020 12:42:52 -07:00 Committer: Ingo Molnar CommitterDate: Tue, 01 Sep 2020 09:50:36 +02:00 arm64/build: Use common DISCARDS in linker script Use the common DISCARDS rule for the linker script in an effort to regularize the linker script to prepare for warning on orphaned sections. Additionally clean up left-over no-op macros. Signed-off-by: Kees Cook Signed-off-by: Ingo Molnar Acked-by: Will Deacon Link: https://lore.kernel.org/r/20200821194310.3089815-12-keescook@chromium.org --- arch/arm64/kernel/vmlinux.lds.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index c2b8426..082e9ef 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -6,6 +6,7 @@ */ #define RO_EXCEPTION_TABLE_ALIGN 8 +#define RUNTIME_DISCARD_EXIT #include #include @@ -88,10 +89,8 @@ SECTIONS * matching the same input section name. There is no documented * order of matching. */ + DISCARDS /DISCARD/ : { - EXIT_CALL - *(.discard) - *(.discard.*) *(.interp .dynamic) *(.dynsym .dynstr .hash .gnu.hash) }