public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problems compiling with KCFLAGS="-frecord-gcc-switches"
@ 2017-09-29 20:00 Guenter Roeck
  2017-09-29 20:38 ` Guenter Roeck
  2017-09-29 20:46 ` Josh Poimboeuf
  0 siblings, 2 replies; 9+ messages in thread
From: Guenter Roeck @ 2017-09-29 20:00 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: linux-kernel

Hi Josh,

when trying to compile an image with KCFLAGS="-frecord-gcc-switches",
I get the folllowing build warning/error.

make allmodconfig
KCFLAGS="-frecord-gcc-switches" make arch/x86/kvm/emulate.o
./tools/objtool/objtool check --no-unreachable "arch/x86/kvm/emulate.o"

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

Building a full image aborts with:

WARNING: arch/x86/kvm/kvm.o(__ex_table+0x4c): Section mismatch in reference
	from the (unknown reference) (unknown)
	to the variable .GCC.command.line:kvm_fastop_exception
FATAL: The relocation at __ex_table+0x4c references
section ".GCC.command.line" which is not executable, IOW
the kernel will fault if it ever tries to
jump to it.  Something is seriously wrong
and should be fixed.
make[2]: *** [arch/x86/kvm/kvm.o] Error 1

Any idea what might cause this problem ?

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-03 20:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-29 20:00 Problems compiling with KCFLAGS="-frecord-gcc-switches" Guenter Roeck
2017-09-29 20:38 ` Guenter Roeck
2017-09-29 20:58   ` Josh Poimboeuf
2017-09-29 23:08     ` Guenter Roeck
2017-09-29 20:46 ` Josh Poimboeuf
2017-09-30  1:07   ` Guenter Roeck
2017-10-03 17:54   ` Guenter Roeck
2017-10-03 18:00     ` Josh Poimboeuf
2017-10-03 20:27       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox