]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: Accept PLT calls to __getauxval within libc.so
authorFlorian Weimer <fweimer@redhat.com>
Tue, 12 May 2020 09:30:30 +0000 (11:30 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 12 May 2020 10:51:10 +0000 (12:51 +0200)
When using outline atomics (-moutline-atomics, the default for ARMv8-A
starting with GCC 10), libgcc contains an ELF constructor which calls
__getauxval.  This code is built outside of glibc, so none of its
internal PLT avoidance schemes can be applied to it.  This change
suppresses the elf/check-localplt failure.

sysdeps/unix/sysv/linux/aarch64/localplt.data

index 56f362d3a740af5a5f0116cf5b32e867ad546bf8..2c14b652efbfdf443329a24b28c70132c1828085 100644 (file)
@@ -7,6 +7,9 @@ libc.so: malloc
 libc.so: memalign
 libc.so: realloc
 libm.so: matherr
+# If outline atomics are used, libgcc (built outside of glibc) may
+# call __getauxval using the PLT.
+libc.so: __getauxval ?
 # The dynamic loader needs __tls_get_addr for TLS.
 ld.so: __tls_get_addr
 # The TLS-enabled version of these functions is interposed from libc.so.