mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/x86: prevent addition of .note.gnu.property if livepatch is enabled
GNU assembly that supports such feature will unconditionally add a .note.gnu.property section to object files. The content of that section can change depending on the generated instructions. The current logic in livepatch-build-tools doesn't know how to deal with such section changing as a result of applying a patch and rebuilding. Since .note.gnu.property is not consumed by the Xen build, suppress its addition when livepatch support is enabled. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
c8754cbc1d
commit
718400a54d
1 file changed
+6
@@ -46,6 +46,12 @@ CFLAGS-$(CONFIG_CC_IS_GCC) += -fno-jump-tables
|
||||
CFLAGS-$(CONFIG_CC_IS_CLANG) += -mretpoline-external-thunk
|
||||
endif
|
||||
|
||||
# Disable the addition of a .note.gnu.property section to object files when
|
||||
# livepatch support is enabled. The contents of that section can change
|
||||
# depending on the instructions used, and livepatch-build-tools doesn't know
|
||||
# how to deal with such changes.
|
||||
$(call cc-option-add,CFLAGS-$(CONFIG_LIVEPATCH),CC,-Wa$$(comma)-mx86-used-note=no)
|
||||
|
||||
ifdef CONFIG_XEN_IBT
|
||||
# Force -fno-jump-tables to work around
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104816
|
||||
|
||||