Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3471183pxu; Mon, 30 Nov 2020 04:04:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQl6BeVQweziSkLQZxnsXooh4GUKos9RNVU8jIKd+WfGFGN+fen3w9ADUP+paYbqxXOdst X-Received: by 2002:a50:ec86:: with SMTP id e6mr13422582edr.278.1606737849224; Mon, 30 Nov 2020 04:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606737848; cv=none; d=google.com; s=arc-20160816; b=wz6TqhZLdVF40x3M/FhrRkAWfAdu0xnHAf1OHeTMaWVeMFdbnS3bZGlGRB30EYzeWF IMta/CT8bhAbY9mrpz6MM1lwjhMZDUw0DK8tsxSgRHkzn+5rBG14IpHhjR8/+S3ncQHZ 4ZGyXsWAZoHZPUktEc+aM/z5abm8ExPY7t4GQMYSA6WchGhk8vsuEq2J6pBx3ed9IyOI qlwag+w0rrElkzYlMLA/PUHgg/mgpNbl/cuJM4ZjRCOS1puQLFAEd3rzyPR5wlTPM8uB OZB+/N1SL3wYRmXeXnXQtHtzWpBNuN5weXRKRNeeJERj8FC3YcqTWxh2RNqJ/P5GevGb /R1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uay6wYeigzGIb7IXjukvrSzMpse9nj7ZaynJ+R198Qs=; b=GhKGA4VL8mv4hSL54KW2dK4ufuKjtEaJ3FDsHgcISM2mmF6bG7gbpn2sD9AYIhx6gK rxVOuYWvHCI2vfW74OZY/lyfaXVeO63yWfco7smam317Or1S3oVE6Ui1OrUdpLHOiPz0 GHtg4F/SUVwY2Ni2scOMvvvJ/rTK/YKlYyASjRUGg+no5p41M0FteV94K/K8hNUvNeFl z/1XX1LuQtyJnN13uP20CKhJwBXG1rkbPRz0AVFxBU5RkFGfjgKZiCTWF60ICdHdJaQ6 CATC+zznO8PFkJsHcE+YGM5CdHA+YFJoZBYPEwknY1htvlWpQwk1/lbxNMYjoISS+dvx Tu4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yzM9f+2t; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si10349661ejh.20.2020.11.30.04.03.44; Mon, 30 Nov 2020 04:04:08 -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=@kernel.org header.s=default header.b=yzM9f+2t; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728957AbgK3MBJ (ORCPT + 99 others); Mon, 30 Nov 2020 07:01:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:34904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbgK3MBI (ORCPT ); Mon, 30 Nov 2020 07:01:08 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 179B52073C; Mon, 30 Nov 2020 12:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606737627; bh=HBOIO8GaCg6xuTGjJaH9CwIBSnKPzHwxyZUymO54yi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yzM9f+2t0xm2UaSKWFUKTi0QtGsVMKXqHXBS1Z7u81tBEmBY8l8f7Hsa1i2mw4qyd fvd85qZ6OMwkW1qqkN71XY+4V/XfXkDnI1y+duNB0L2COvyVv3mGOw0HVIw6ROw3sk 6KhUBLTX11sbbhPwamUk+q9jexDlZ968PrKAzHsg= Date: Mon, 30 Nov 2020 12:00:21 +0000 From: Will Deacon To: Sami Tolvanen Cc: Masahiro Yamada , Steven Rostedt , 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 Subject: Re: [PATCH v7 17/17] arm64: allow LTO_CLANG and THINLTO to be selected Message-ID: <20201130120021.GE24563@willie-the-truck> References: <20201118220731.925424-1-samitolvanen@google.com> <20201118220731.925424-18-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201118220731.925424-18-samitolvanen@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 18, 2020 at 02:07:31PM -0800, Sami Tolvanen wrote: > 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 Acked-by: Will Deacon Will