[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171109163144.GA10540@samitolvanen.mtv.corp.google.com>
Date: Thu, 9 Nov 2017 08:31:44 -0800
From: Sami Tolvanen <samitolvanen@...gle.com>
To: AKASHI Takahiro <takahiro.akashi@...aro.org>,
Mark Rutland <mark.rutland@....com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Kees Cook <keescook@...omium.org>,
LKML <linux-kernel@...r.kernel.org>,
Greg Hackmann <ghackmann@...gle.com>,
Matthias Kaehlcke <mka@...omium.org>,
linux-arm-kernel@...ts.infradead.org, marc.zyngier@....com,
cdall@...aro.org, ard.biesheuvel@...aro.org
Subject: Re: [PATCH 00/15] Add support for clang LTO
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
Powered by blists - more mailing lists