Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp877528ybt; Wed, 24 Jun 2020 13:34:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5oEbirnik1CAJ38N/PSgjjRnA14eXcIjBDe7vYx5EyN/EcX1tOIqedjZo2s3e/skJsg7o X-Received: by 2002:a50:d753:: with SMTP id i19mr24979627edj.9.1593030868475; Wed, 24 Jun 2020 13:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593030868; cv=none; d=google.com; s=arc-20160816; b=d2ItIc2MfeVgvNT55LwAEooo+4LIB70XxqaeohyhSMiC0bJ1V2MV6QYZaFpqfF4M4J S2WI2lyQ3yhQyyYKLFNeWPIXa9L53kRUqZzI1Lu0D0QK1LIdlNBBBOshqGMfHsyt+DLe 8/K8noj5hBQi2cfiHcJPgHwhPq74CKMVxDwLhsFoVhPH60fUk7MVIhn/8rOftXEB9fkm 0Bt8AQOIoHe3T7ccYVvNrXgWHg109+S60oNjekZkFbsyxq4H021bfguDk0xFIb6Ypr/g IGbKUftfHjupUedklYPrXFxrBRLUQsmy0/P7iB09G9/5HwtkkQZR9X5r9w4wzziKfvNI K2vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=tPGFlpm4UBb0TochKjxo1pWDKJKPOqpdcyA67hsa/L0=; b=ho9Z4klScpI7YY1ob47YlFFqZMrycYNWtQUULBqycs4XNGv3m0xxcaMiKM2rp+GlqF JldOQ+zD9KA4bKN92XBHibx80sSuenMOTWzKuFYG7LbgWOLU3SrkflxQngbcAY7UawLm mXiLLpi6UjLW08PW59CR/09FpQg3f7f1i/wKjwurA08xZx9apX0n+TrzbSRna3NRPIje tIbdspaxPlj4pezFo4OYu9ILIJusGWbNAd/0XgDbU1frf+cPWE9vlREfaKJCs6M4nG/N utNaPtmqeJxQOPdPnRiBeCfQCPau9Vl5RUJvx9qyQW/Xm7//b7g7AdonyJdOT3qzlfEU yA2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UWquwQhX; 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 y18si5776326edw.583.2020.06.24.13.34.05; Wed, 24 Jun 2020 13:34:28 -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=UWquwQhX; 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 S2406593AbgFXUdg (ORCPT + 99 others); Wed, 24 Jun 2020 16:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406580AbgFXUdd (ORCPT ); Wed, 24 Jun 2020 16:33:33 -0400 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC940C061796 for ; Wed, 24 Jun 2020 13:33:31 -0700 (PDT) Received: by mail-qv1-xf49.google.com with SMTP id v20so2488804qvt.15 for ; Wed, 24 Jun 2020 13:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=tPGFlpm4UBb0TochKjxo1pWDKJKPOqpdcyA67hsa/L0=; b=UWquwQhXAU0FVu4xLvS68q0H5KMxmC2ClvghZJMO4mnRx07EpAl76zEcZBzo4oeEr0 7QXs8i2/+8O4w4SxtWsY3wN7GwxBdmr8ei0LaPar71G/kQf7fHaujWILvZ2kj0I3OQnr XU2/mlOZsNQvQSHPQNf0o+Qm3V8oiEUyLdtK1wUmyBN7hxR5xoSfaX9vD6ylX1d8MUtg 8oc06ZHQnmcIQFLeYAyeQNfJHs0QNV6Vk/mbPBcPZcsZ2TSgTBf3waXZc3e781NAKP/5 u74kiQ+ly65wZm433U8lBfaxNpuvW2v+K3io3UW/wCh82HySe+7ylz3czOz1zaRbngJk H88w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=tPGFlpm4UBb0TochKjxo1pWDKJKPOqpdcyA67hsa/L0=; b=WxKYNDpFB36JKgHlOw35ijGnmO19SPj+OOUbrHNoW+iPub0mvEhNLXe0lPZSYc9Pja +SzDzVNMAWgl5w4KIm4V25IF9WUuCQXzbGyUvIL7u9345VpYqnFC1LcwFQYdTVSw+dIi F2oWQriWJBGJ2QHie4eUMBKYqGQQZV0CO781eztzdJc/vv5lCbS9UVEOUCavUoLzWvI5 /ckBDMFdqyW/ADWLq12d1wHmmhHN7lreN9b9OHlKErj0cJiVlced/fYIw1BlDyICfzCp MqJnGMowFNn7herh4/GAnxAHMTjkZE0kMvQt3WZ48TaJcz6cDXyXnQXiibaA2O3DEB+x 7cNQ== X-Gm-Message-State: AOAM533HA0ZywugOnqc7E4/9RgPEzuaub+sWvUtwi02xOmP8RPUtx5uc 5E5NXycIODkjSLk/+tRypAU56bv8XyfK22iydK4= X-Received: by 2002:a0c:8482:: with SMTP id m2mr33607693qva.65.1593030810891; Wed, 24 Jun 2020 13:33:30 -0700 (PDT) Date: Wed, 24 Jun 2020 13:31:56 -0700 In-Reply-To: <20200624203200.78870-1-samitolvanen@google.com> Message-Id: <20200624203200.78870-19-samitolvanen@google.com> Mime-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH 18/22] arm64: allow LTO_CLANG and THINLTO to be selected From: Sami Tolvanen To: Masahiro Yamada , Will Deacon Cc: 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" Sender: linux-kernel-owner@vger.kernel.org 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 --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a4a094bedcb2..e1961653964d 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.27.0.212.ge8ba1cc988-goog