446cf2
commit 16536e98e36e08bc1ce1edbd8dd50c7c3bb7a936
446cf2
Author: Florian Weimer <fweimer@redhat.com>
446cf2
Date:   Tue May 12 11:30:30 2020 +0200
446cf2
446cf2
    aarch64: Accept PLT calls to __getauxval within libc.so
446cf2
    
446cf2
    When using outline atomics (-moutline-atomics, the default for ARMv8-A
446cf2
    starting with GCC 10), libgcc contains an ELF constructor which calls
446cf2
    __getauxval.  This code is built outside of glibc, so none of its
446cf2
    internal PLT avoidance schemes can be applied to it.  This change
446cf2
    suppresses the elf/check-localplt failure.
446cf2
446cf2
diff -rup a/sysdeps/unix/sysv/linux/aarch64/localplt.data b/sysdeps/unix/sysv/linux/aarch64/localplt.data
446cf2
--- a/sysdeps/unix/sysv/linux/aarch64/localplt.data	2018-08-01 01:10:47.000000000 -0400
446cf2
+++ b/sysdeps/unix/sysv/linux/aarch64/localplt.data	2020-10-27 15:55:53.457002541 -0400
446cf2
@@ -7,6 +7,9 @@ libc.so: malloc
446cf2
 libc.so: memalign
446cf2
 libc.so: realloc
446cf2
 libm.so: matherr
446cf2
+# If outline atomics are used, libgcc (built outside of glibc) may
446cf2
+# call __getauxval using the PLT.
446cf2
+libc.so: __getauxval ?
446cf2
 # The dynamic loader needs __tls_get_addr for TLS.
446cf2
 ld.so: __tls_get_addr
446cf2
 # The main malloc is interposed into the dynamic linker, for