From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753247AbdKIQbu (ORCPT ); Thu, 9 Nov 2017 11:31:50 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:56907 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751020AbdKIQbt (ORCPT ); Thu, 9 Nov 2017 11:31:49 -0500 X-Google-Smtp-Source: ABhQp+Qq3jSzV/yjsM9zjUnnXWM6sTD+bkL+8hRHvWnDxGuLF/IM4+IGgMgOnU/KcuflKVSgfxgCZg== Date: Thu, 9 Nov 2017 08:31:44 -0800 From: Sami Tolvanen To: AKASHI Takahiro , Mark Rutland , 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: <20171109163144.GA10540@samitolvanen.mtv.corp.google.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171109105439.GA27630@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 09, 2017 at 07:54:40PM +0900, AKASHI Takahiro wrote: > 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. Yes, the behavior changed in LLVM r308050, which is part of the 5.0 release, but not in the latest Android clang prebuilts. Before this change, no branches were generated in __init_stage2_translation. Using -mllvm -jump-threading-threshold=0 also appears to solve this problem. Sami