From mboxrd@z Thu Jan 1 00:00:00 1970 From: takahiro.akashi@linaro.org (AKASHI Takahiro) Date: Thu, 9 Nov 2017 19:54:40 +0900 Subject: [PATCH 00/15] Add support for clang LTO In-Reply-To: <20171104021303.bexhsxpg5tjerhu7@salmiak> 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> Message-ID: <20171109105439.GA27630@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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. -Takahiro AKASHI > Thanks, > Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205AbdKIKvW (ORCPT ); Thu, 9 Nov 2017 05:51:22 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:48338 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753057AbdKIKvS (ORCPT ); Thu, 9 Nov 2017 05:51:18 -0500 X-Google-Smtp-Source: AGs4zMYfPPFjFrE3UJZY6tL2tkfCSsq4Jy8CWNMjqdUyY5bsYY0z1kzjEGHJvnqknl0d6wcqaEV/4Q== Date: Thu, 9 Nov 2017 19:54:40 +0900 From: AKASHI Takahiro To: Mark Rutland Cc: Sami Tolvanen , Nick Desaulniers , Kees Cook , LKML , Greg Hackmann , Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, cdall@linaro.org, ard.biesheuvel@linaro.org Subject: Re: [PATCH 00/15] Add support for clang LTO Message-ID: <20171109105439.GA27630@linaro.org> Mail-Followup-To: AKASHI Takahiro , Mark Rutland , Sami Tolvanen , Nick Desaulniers , Kees Cook , LKML , Greg Hackmann , Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171104021303.bexhsxpg5tjerhu7@salmiak> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Takahiro AKASHI > Thanks, > Mark.