From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124AbdKILDv (ORCPT ); Thu, 9 Nov 2017 06:03:51 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45280 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbdKILDs (ORCPT ); Thu, 9 Nov 2017 06:03:48 -0500 Subject: Re: [PATCH 00/15] Add support for clang LTO To: AKASHI Takahiro , Mark Rutland , Sami Tolvanen , Nick Desaulniers , Kees Cook , LKML , Greg Hackmann , Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org, cdall@linaro.org, ard.biesheuvel@linaro.org References: <20171103171203.107569-1-samitolvanen@google.com> <20171103175156.f44o7kuxgzym3pbt@lakrids.cambridge.arm.com> <20171103180913.whp2tdjjvs32f4lz@lakrids.cambridge.arm.com> <20171103192634.u25go4tu7lgzl6ja@lakrids.cambridge.arm.com> <20171103195647.GA137924@samitolvanen.mtv.corp.google.com> <20171104021303.bexhsxpg5tjerhu7@salmiak> <20171109105439.GA27630@linaro.org> From: Marc Zyngier Organization: ARM Ltd Message-ID: <868353d9-5972-c6e8-02ed-6f9010c3e40f@arm.com> Date: Thu, 9 Nov 2017 11:03:45 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171109105439.GA27630@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/11/17 10:54, AKASHI Takahiro wrote: > On Sat, Nov 04, 2017 at 02:13:04AM +0000, Mark Rutland wrote: >> On Fri, Nov 03, 2017 at 12:56:47PM -0700, Sami Tolvanen wrote: >>> On Fri, Nov 03, 2017 at 07:26:35PM +0000, Mark Rutland wrote: >>>> I guess that in Google you haven't tested on a platform with EL2 >>>> available? >>> >>> Correct. I'll look into this and include a fix in v2. Does this work on a >>> clang build without LTO? >> >> I saw this on v4.14-rc7, with patch 7 (-mno-implicit-float), but no other >> patches from this series (i.e. no LTO). > > > Add -fno-jump-tables to ccflags-y of arch/arm64/kvm/hyp/Makefile. > Without this option, clang generates a branch instruction (br x11) > to an absolute (EL1) virtual address. Instead of adding more compiler flags to the Makefile, is there any way to have that as a function attribute? Thanks, M. -- Jazz is not dead. It just smells funny...