x86/ubsan: Don't perform alignment checking on supporting compilers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Jun 2019 09:43:34 +0000 (10:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 31 Jul 2019 13:37:56 +0000 (14:37 +0100)
commit3b6eff372806cc71b30acf5159febd21fa2c1cc0
treef6e7141315d2789961f1a0d44af2991ffbd8ae3c
parent810227b1090224a2b7a5ca910c417f385808e4c8
x86/ubsan: Don't perform alignment checking on supporting compilers

GCC 5 introduced -fsanitize=alignment which is enabled by default by
CONFIG_UBSAN.  This trips a load of wont-fix cases in the ACPI tables and the
hypercall page and stubs writing logic.

It also causes the native Xen boot to crash before the console is set up, for
an as-yet unidentified reason (most likley a wont-fix case earlier on boot).

Disable alignment sanitisation on compilers which would try using it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Rules.mk
xen/arch/x86/Rules.mk