From ba436665b1c9e8bcef76947a4b59706bc64ceead Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Wed, 30 Jun 2021 16:17:37 +0200 Subject: 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. --- posix/glob64-time64.c | 1 + 1 file changed, 1 insertion(+) (limited to 'posix/glob64-time64.c') diff --git a/posix/glob64-time64.c b/posix/glob64-time64.c index b0f8facd84..434d8ddd7b 100644 --- a/posix/glob64-time64.c +++ b/posix/glob64-time64.c @@ -43,6 +43,7 @@ __glob64_time64 (const char *pattern, int flags, __set_errno (ENOSYS); return GLOB_NOSYS; } +libc_hidden_def (__glob64_time64) stub_warning (glob64) -- cgit 1.4.1