Skip to content
  • Andrew Jones's avatar
    arm64: Compile with -mno-outline-atomics · 4e40b023
    Andrew Jones authored
    
    
    GCC 10.1.0 introduced the -moutline-atomics option which, when
    enabled, use LSE instructions when the processor provides them.
    The option is enabled by default and unfortunately causes the
    following error at compile time:
    
     aarch64-linux-gnu-ld: /usr/lib/gcc/aarch64-linux-gnu/10.1.0/libgcc.a(lse-init.o): in function `init_have_lse_atomics':
     lse-init.c:(.text.startup+0xc): undefined reference to `__getauxval'
    
    This is happening because we are linking against our own libcflat which
    doesn't implement the function __getauxval().
    
    Disable the use of the out-of-line functions by compiling with
    -mno-outline-atomics.
    
    Reported-by: Alexandru Elisei's avatarAlexandru Elisei <alexandru.elisei@arm.com>
    Tested-by: Alexandru Elisei's avatarAlexandru Elisei <alexandru.elisei@arm.com>
    Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
    Message-Id: <20200728121751.15083-1-drjones@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4e40b023
Loading