summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2021-06-30 16:17:37 +0200
committerStefan Liebler <stli@linux.ibm.com>2021-07-01 16:46:59 +0200
commitba436665b1c9e8bcef76947a4b59706bc64ceead (patch)
tree457534e7617857dbfe9cb4b02dee49c0c5bac85c /sysdeps
parent6a34c928c2ac9fce926b1348d61dae34262e3f77 (diff)
downloadglibc-ba436665b1c9e8bcef76947a4b59706bc64ceead.tar.gz
glibc-ba436665b1c9e8bcef76947a4b59706bc64ceead.tar.xz
glibc-ba436665b1c9e8bcef76947a4b59706bc64ceead.zip
Fix extra PLT reference in libc.so due to __glob64_time64 if build with gcc 7.5 on 32bit.
Starting with recent commit 84f7ce84474c1648ce96884f1c91ca7b97ca3fc2
"posix: Add glob64 with 64-bit time_t support", elf/check-localplt
fails due to extra PLT reference __glob64_time64 in __glob64_time64
itself.

This is observable with gcc 7.5 on x86_64 with -m32 or s390x with
-m31.  E.g. if build with gcc 10, gcc is generating a call to
__glob64_time64.localalias.

This patch is adding a hidden version of __glob64_time64 in the
same way as for __globfree64_time64.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/glob64-time64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/glob64-time64.c b/sysdeps/unix/sysv/linux/glob64-time64.c
index 260f067fa4..a465f70905 100644
--- a/sysdeps/unix/sysv/linux/glob64-time64.c
+++ b/sysdeps/unix/sysv/linux/glob64-time64.c
@@ -41,4 +41,5 @@
 # define COMPILE_GLOB64	1
 
 # include <posix/glob.c>
+libc_hidden_def (__glob64_time64)
 #endif