aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-06-19 09:00:23 -0700
committerAlistair Francis <alistair.francis@wdc.com>2020-09-17 10:51:43 -0700
commitd38e1bbda0be2d184f0496001cfeab00216fe01c (patch)
tree0a1c2ffd18e65e181fe9df9560ed24d6627978cd /sysdeps/unix/sysv
parent07f3ecdba69c5190180112c25757040c69041bb9 (diff)
downloadglibc-d38e1bbda0be2d184f0496001cfeab00216fe01c.tar
glibc-d38e1bbda0be2d184f0496001cfeab00216fe01c.tar.gz
glibc-d38e1bbda0be2d184f0496001cfeab00216fe01c.tar.bz2
glibc-d38e1bbda0be2d184f0496001cfeab00216fe01c.zip
Allow memset local PLT reference for RISC-V.
This is similar to commit a26e2e9feab87d4f745c31411458b048742ac733 "Allow memset local PLT reference for powerpc soft-float.". GCC 10.1 results in the localplt test failing for RISC-V. From the original commit for power-pc: Since memset is documented as a function GCC may always implicitly generate calls to, it seems reasonable to allow that local PLT reference (just like those for libgcc functions that GCC implicitly generates calls to and that are also exported from libc.so), which this patch does. Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/riscv/localplt.data1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/localplt.data b/sysdeps/unix/sysv/linux/riscv/localplt.data
index 0ed8650b65..0a235592c3 100644
--- a/sysdeps/unix/sysv/linux/riscv/localplt.data
+++ b/sysdeps/unix/sysv/linux/riscv/localplt.data
@@ -5,6 +5,7 @@ libc.so: calloc
libc.so: free
libc.so: malloc
libc.so: memalign
+libc.so: memset ?
libc.so: realloc
# The TLS-enabled version of these functions is interposed from libc.so.
ld.so: _dl_signal_error