about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-01 20:48:46 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-01 21:05:51 +0000
commitdb25266c9202a1235ce2e2f8a4f84cfb86254196 (patch)
treeb23f1944793f1c15c8cda8b659034454c34fea4e /sysdeps/unix
parent892badc9bbcd4a6f8c2eb6c8a99be3aa22517532 (diff)
downloadglibc-db25266c9202a1235ce2e2f8a4f84cfb86254196.tar.gz
glibc-db25266c9202a1235ce2e2f8a4f84cfb86254196.tar.xz
glibc-db25266c9202a1235ce2e2f8a4f84cfb86254196.zip
hurd: Fix ld.so __getcwd override from libc
ld.so symbols to be overriden by libc need to be extern to really get
overriden. __getcwd happens to have never been exposed, putting it to
GLIBC_PRIVATE.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index eec986e699..c031e1ff5a 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -127,6 +127,7 @@ __getcwd (char *buf, size_t size)
 
   return NULL;
 }
+libc_hidden_def (__getcwd)
 weak_alias (__getcwd, getcwd)
 
 /* Get the code for the generic version.  */