]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm: Move kvm_fastop_exception to .fixup section
authorJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 4 Oct 2017 15:39:05 +0000 (10:39 -0500)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 5 Oct 2017 13:06:30 +0000 (15:06 +0200)
commit438afebd0ede4899d3541da842be752dff1c4a3b
tree607ac1ada59e9a982c0e06ce6849a5da5a641142
parente97251fc6e5b1f0110987c27695c6b04509bc266
x86/kvm: Move kvm_fastop_exception to .fixup section

When compiling the kernel with the '-frecord-gcc-switches' flag, objtool
complains:

  arch/x86/kvm/emulate.o: warning: objtool: .GCC.command.line+0x0: special: can't find new instruction

And also the kernel fails to link.

The problem is that the 'kvm_fastop_exception' code gets placed into the
throwaway '.GCC.command.line' section instead of '.text'.

Exception fixup code is conventionally placed in the '.fixup' section,
so put it there where it belongs.

Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/emulate.c