Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4111193pxk; Tue, 29 Sep 2020 14:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHCjStHmh9u82h8NETQMUBGJEkQX4iPzjNbxx+xCyJ9P52aywaEupGbQXxAmCwyqc0T6hi X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr5785018eju.199.1601416376655; Tue, 29 Sep 2020 14:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601416376; cv=none; d=google.com; s=arc-20160816; b=wCt3Cd6/O6NruHOfc+SBy0Aw5AzGD6ws8U4yCY0pMtJrpb2xaWXUSUX/JyLcy83t/Y LFBveHAcXbM1HnpIJKRS4AbCiCOkxGlfewdF1YI9OVN7hUqbbgOazzSLSJ7I5A6B3uHY 8G3OcYQw6cJqPm7vtBfXYxpcyEkSN8wdG5Qy5NNOFr62jIvmXPaGDxl6bWOSy/foZ5iT qu0ExVeJ7i0K/BvLGvyyyGgXk04JD8DKnR0tpW4gbwzgnNbjdmyU9eeBl8JCUL+Kij+k gXhwD0DaH4EgEyvKWgyvqTlvcqx8t9Gi42PNuo79434p0b34T+AyQPndzsdX2eJlqraD EgFQ== 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=HR6xYTbNbcDM2Zx8OyOOjD6y5MQ06zsj0pUhq+j+6f0=; b=jfLn0MM1c2WMiccQ1SZ8jiaVbsL8QI5ObEHvRDERDmRfRJVbwJMGNkDKiFVhrd8C97 bPGojU/LdI1un31+D0jmCgVAe/msEmuQY4Xc4XYnXXeW4SQyve2OXL9xSK3n0NRIEkm+ J9VTwEiAtPvdbkgEd9XcRmb4v3q3eKArK1fihklfoAut6g+XePpDtLVsnyP4VsrFmS1D stUbWS5iqZJ+pyv3D6aNYwil7A8QWRNpijYxEVYksw0vGTDRW+isW2NJDk0YMeNNKdE4 c6EpAouko57jpQHnnFKpdVxD5zI6FRGje/zyWFwtuN81uqEEC+QWHE9Ym0Y/rX3xaW5O kQTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mjtEviXm; 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 j14si3644140edy.412.2020.09.29.14.52.33; Tue, 29 Sep 2020 14:52:56 -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=pass header.i=@google.com header.s=20161025 header.b=mjtEviXm; 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 S1728104AbgI2Vs5 (ORCPT + 99 others); Tue, 29 Sep 2020 17:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728716AbgI2Vrp (ORCPT ); Tue, 29 Sep 2020 17:47:45 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA79DC0613A5 for ; Tue, 29 Sep 2020 14:47:33 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id 16so3667097qky.8 for ; Tue, 29 Sep 2020 14:47:33 -0700 (PDT) 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=HR6xYTbNbcDM2Zx8OyOOjD6y5MQ06zsj0pUhq+j+6f0=; b=mjtEviXmAKLxRM/LKJDKCHLIap39YYCJi8bXUSknQxexGmScOixPfgLk2saryOKVhr MDXdwtc03Qsk8BhzaMB6wWLfJxFsJFr3vbeje5KUt1CCBDcvypxfH4Fd/DWdOskLuiWX NuoS4Bfi9pPbelk7+Wps01W1gREOYAgy0hs0foMuoNPzPZHoq/3Nbj/lsE5jTNdKMozj B1pDJbVp/H5WbOFBXWVr5QnvhRybtlvviWImhHwfWGzZfBrzqfvE+v/WN27Qnhw99flS d+zHsrVrZeZ906dvjvCq1dGlmBlNMTipr0bhZn+88+kegFwV/4iyBn9hGct0i3bRdod1 YlfA== 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=HR6xYTbNbcDM2Zx8OyOOjD6y5MQ06zsj0pUhq+j+6f0=; b=lVbzzVA9bln9x1A6lVHIpTxdVO840NUNxXFhx8H3nA5Uztkwfv0kpin8lEWQcKu5VT NiELcfYabs90Df77qkIYjlLVKK9UvDhEFdzrlTMjhg7tIHD/JechnevTJ62ml88IBJUp dYrjZamUtliH6H9MsdhoMlJVqlOCU5UGm06UTxqHpwVgOZ1dGMPtlf8t5JWMfnSthCtM 2gO+7zIj9QP3yQ8If/A816l8oQs3EeCNFWRmv6Hc1ZKWhcm5avfJNkv8qPHObXOICPu7 ddP6/S3rzYC+UtCZIzh0UxazKR8DXlyIy5t751EcYaM78oKr1onLjwxqaoj2KHn1f8vz AcAA== X-Gm-Message-State: AOAM5330fO91vs3FKiefQsYtuT4w5rVVyd2PD12ia9vANWvM40+9YrGc vC0c9GAWS0P/ug+DTet66fNq7KrRJwQ7SLGTE0k= 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:a0c:d682:: with SMTP id k2mr6249286qvi.27.1601416052963; Tue, 29 Sep 2020 14:47:32 -0700 (PDT) Date: Tue, 29 Sep 2020 14:46:28 -0700 In-Reply-To: <20200929214631.3516445-1-samitolvanen@google.com> Message-Id: <20200929214631.3516445-27-samitolvanen@google.com> Mime-Version: 1.0 References: <20200929214631.3516445-1-samitolvanen@google.com> X-Mailer: git-send-email 2.28.0.709.gb0816b6eb0-goog Subject: [PATCH v4 26/29] arm64: allow LTO_CLANG and THINLTO to be selected From: Sami Tolvanen To: Masahiro Yamada , Will Deacon , Steven Rostedt Cc: 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, x86@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 ad522b021f35..7016d193864f 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -72,6 +72,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.28.0.709.gb0816b6eb0-goog