Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp673215pxb; Wed, 18 Nov 2020 14:11:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsuaDOcKMNoOSsJeoVP9D1hfIcQOrnOf6VxsET/NERfFtkTb4B+T/ODT2SjLZcc1cfsye+ X-Received: by 2002:a17:906:c059:: with SMTP id bm25mr4462200ejb.20.1605737464491; Wed, 18 Nov 2020 14:11:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605737464; cv=none; d=google.com; s=arc-20160816; b=SkQmKs8zAxuhpfelmvLGZUZmzr1h1dJi9xeJ+hcFkqrJrTXvg7lark8HvAqUKaMC0k QLgUtJE7R2JavSix+EqWw6E1o284eNi8LqleCnxACAV76lbekhr7aEeMPrbg93/i93zd EN82k+FTK8uW1E5WQBEL0HK3Ig6pHFVyqrH1EaS7ltU07XvIy5KuMOxhu9iCeocPEelN B3Ba6coC5f5Emh4L7DTgPVFX6usHdHKbzkkJegsAxbHSptqgxJk9V50WTvX72VyBQEr0 hkwy0mLJpv4NDkdYd18r6aYSXzka6uRbS1YhxyQh+hRFoEiFtB2xlIUSRsZ8W+06NOt9 IKZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=zNEbBbUjVUwNrqsw9c+UpkNEFF7VA0EYfHLp5cIzntw=; b=hWbkjsYHK60Ec9I0mhVzIe1rAHytcirVv5rY4FD5KVhXVcDmBvvmoDom75SDaNfZWn E4A+FEi2v8++dC4I0mNGfI7MxaED9HESij60XXGHjFv7pa6qVmZrg0Rpca4eQwwAYkri 4VvnXbPR/yhdQekXQWtGNWAquZydlipkpeDRrXlAPK/TJtpkAFS0f9xrh/7kFKlP0Dj/ iL9YsUF15scou4ebi8sHofcjWYvp84oLqGvI+BSufd8xu833oCZjgxICTxfDzGM5r4Th ifHO9TZtvPTN2yax23creOUrA9zIL19CpZDGAO9jrkPxIyiV6/iTluEh3hJwzrjgdS28 wN+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=n0bp9cJv; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si1652645edt.290.2020.11.18.14.10.41; Wed, 18 Nov 2020 14:11:04 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=n0bp9cJv; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbgKRWIS (ORCPT + 99 others); Wed, 18 Nov 2020 17:08:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727560AbgKRWIN (ORCPT ); Wed, 18 Nov 2020 17:08:13 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01FAC061A48 for ; Wed, 18 Nov 2020 14:08:13 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id a126so4521942ybb.11 for ; Wed, 18 Nov 2020 14:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=zNEbBbUjVUwNrqsw9c+UpkNEFF7VA0EYfHLp5cIzntw=; b=n0bp9cJvxDsjt7xTCOt5iMFW1d/2tTomLx5U5GAiKgRUC31U0PGdIlVksp+a0VVrdY g5/MehVGAk5dAFkfZ/0D3/kc0qKP/5ghMg0SX2rzCLQrn7ZzkYIMJRTQA4tAkeENX90q zMfWfxpHMr797C3+ufNsF8n5E2EarI0M+SxfmyYFrfheXFRY/USHp0McDL2ojl4Lgr9c ZSVHHwyxFBuJf6EQIB49Tm2/Idyx3u+mRdPPOBh4ppAaY5/pZ300gTIMAOc0hbNqctmz NshfWwPYJRHHUsUv7bRZJJIdOYMWpv3CBbpJoRLYa/A5uDpHU91hRb4ca8tn+CBC/z2v 7wmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=zNEbBbUjVUwNrqsw9c+UpkNEFF7VA0EYfHLp5cIzntw=; b=c/WWo6fPP7BbexZgeihyN9ZkPKdDo6JkLXiBjCobX/qv42g/s9xYe8C2k7cqhUS2Rc B91CfV0ortDAZ3sP8KCSKo2fIf+oWtb7t1MuwzYnPZEE0YnICHUow8fNzAbMIP/BkJF2 Groo5I8UpRcCTgOceVCo7/FkWkX7GOF3ObjoCFRLlhuPfTIFlzGSGILj+pjPrXHHUKop hjzarL/uWSnOsfjjXokR6dMRx9hhaopHftcTeMroKdBTK+/SYiSelCc6cwi0YC2JaE6c 9YBEYSnes4N6p6uwRPEU3BeLOCTgGlftFfViDz+8b+KXkvLy0RI6MSBzSMRuxcFDs3nZ Td4A== X-Gm-Message-State: AOAM530T8dzjj7kNxyBBBxNgWqcN7BlFCHmnKBboYgeo/SIcwb/HROfp 7CM3pGMjxlv620tobfdwvBWN93UnHGSiHqhl7wc= Sender: "samitolvanen via sendgmr" X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:f693:9fff:fef4:1b6d]) (user=samitolvanen job=sendgmr) by 2002:a25:aa04:: with SMTP id s4mr8172287ybi.285.1605737293084; Wed, 18 Nov 2020 14:08:13 -0800 (PST) Date: Wed, 18 Nov 2020 14:07:31 -0800 In-Reply-To: <20201118220731.925424-1-samitolvanen@google.com> Message-Id: <20201118220731.925424-18-samitolvanen@google.com> Mime-Version: 1.0 References: <20201118220731.925424-1-samitolvanen@google.com> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH v7 17/17] arm64: allow LTO_CLANG and THINLTO to be selected From: Sami Tolvanen To: Masahiro Yamada , Steven Rostedt , Will Deacon Cc: Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c7f07978f5b6..56bd83a764f4 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -73,6 +73,8 @@ config ARM64 select ARCH_USE_SYM_ANNOTATIONS select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_SHADOW_CALL_STACK if CC_HAVE_SHADOW_CALL_STACK + select ARCH_SUPPORTS_LTO_CLANG + select ARCH_SUPPORTS_THINLTO select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 && (GCC_VERSION >= 50000 || CC_IS_CLANG) select ARCH_SUPPORTS_NUMA_BALANCING -- 2.29.2.299.gdc1121823c-goog