]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Branch inside feature section
authorAlexander Graf <agraf@suse.de>
Thu, 8 Feb 2018 17:38:53 +0000 (18:38 +0100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 9 Feb 2018 04:39:41 +0000 (15:39 +1100)
commit3c8776f3465162a89272157c739f78a4ea4d699a
tree006f51196b43e606bfa12c958bb005b2ab5a5158
parentea48731fbda09f9b853bf6d29315bed9362051ee
KVM: PPC: Book3S HV: Branch inside feature section

We ended up with code that did a conditional branch inside a feature
section to code outside of the feature section. Depending on how the
object file gets organized, that might mean we exceed the 14bit
relocation limit for conditional branches:

  arch/powerpc/kvm/built-in.o:arch/powerpc/kvm/book3s_hv_rmhandlers.S:416:(__ftr_alt_97+0x8): relocation truncated to fit: R_PPC64_REL14 against `.text'+1ca4

So instead of doing a conditional branch outside of the feature section,
let's just jump at the end of the same, making the branch very short.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv_rmhandlers.S