> On 8 Sep 2020, at 13:53, Jan Beulich <jbeul...@suse.com> wrote: > > With gcc10 inlining is (no longer?) the default for certain atomics. > > Suggested-by: Julien Grall <jgr...@amazon.com> > Signed-off-by: Jan Beulich <jbeul...@suse.com> > --- a/xen/arch/arm/arch.mk > +++ b/xen/arch/arm/arch.mk > @@ -12,6 +12,7 @@ CFLAGS-$(CONFIG_ARM_32) += -mcpu=cortex- > > CFLAGS-$(CONFIG_ARM_64) += -mcpu=generic > CFLAGS-$(CONFIG_ARM_64) += -mgeneral-regs-only # No fp registers etc > +$(call cc-option-add,CFLAGS-$(CONFIG_ARM_64),CC,-mno-outline-atomics)
Why not adding this before with the other “call cc-option” ? Also it might be a good idea to have a sentence in the commit message with the error happening when this is not added: undefined reference to `__aarch64_ldadd4_acq_rel’ Because some might need to backport this to other Xen releases if they switch to a new compiler (although i could not reproduce that with Xen 4.14). I tested the patch with Yocto master which is using gcc 10.2 and this works. Bertrand > > ifneq ($(filter command line environment,$(origin CONFIG_EARLY_PRINTK)),) > $(error You must use 'make menuconfig' to enable/disable early printk now) >