diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/Versions | 8 | ||||
-rw-r--r-- | sysdeps/mach/hurd/getcwd.c | 1 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/localplt.data | 2 | ||||
-rw-r--r-- | sysdeps/posix/getcwd.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/getcwd.c | 1 |
5 files changed, 8 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/Versions b/sysdeps/mach/hurd/Versions index c0b73cf0bf..dc199bfd66 100644 --- a/sysdeps/mach/hurd/Versions +++ b/sysdeps/mach/hurd/Versions @@ -1,7 +1,7 @@ libc { GLIBC_2.0 { # functions with a weak definition in the dynamic linker - __access; __getcwd; __mmap; + __access; __mmap; } GLIBC_2.2.6 { # functions with a weak definition in the dynamic linker @@ -10,7 +10,7 @@ libc { GLIBC_PRIVATE { # Functions shared with the dynamic linker __access_noerrno; __libc_read; __libc_write; __libc_lseek64; - __libc_lock_self0; __sigprocmask; + __libc_lock_self0; __sigprocmask; __getcwd; _dl_init_first; } @@ -22,7 +22,7 @@ ld { __hurd_threadvar_stack_mask; __hurd_threadvar_stack_offset; # functions that must be shared with libc - __access; __close; __getcwd; __getpid; + __access; __close; __getpid; __mmap; __open; __read; __sbrk; __strtoul_internal; __write; __writev; __xstat64; __fxstat64; _exit; _hurd_intr_rpc_mach_msg; @@ -41,6 +41,6 @@ ld { # functions that must be shared with libc __access_noerrno; __libc_read; __libc_write; __libc_lseek64; - __libc_lock_self0; __sigprocmask; + __libc_lock_self0; __sigprocmask; __getcwd; } } diff --git a/sysdeps/mach/hurd/getcwd.c b/sysdeps/mach/hurd/getcwd.c index 2757ac7ce8..4114991144 100644 --- a/sysdeps/mach/hurd/getcwd.c +++ b/sysdeps/mach/hurd/getcwd.c @@ -306,4 +306,5 @@ __getcwd (char *buf, size_t size) buf, size)); return cwd; } +libc_hidden_def (__getcwd) weak_alias (__getcwd, getcwd) diff --git a/sysdeps/mach/hurd/i386/localplt.data b/sysdeps/mach/hurd/i386/localplt.data index 1aef944337..0c1cf0ffa9 100644 --- a/sysdeps/mach/hurd/i386/localplt.data +++ b/sysdeps/mach/hurd/i386/localplt.data @@ -35,7 +35,7 @@ ld.so: __xstat64 #ld.so: __access ld.so: __access_noerrno ld.so: __getpid -#ld.so: __getcwd +ld.so: __getcwd ld.so: __sbrk ld.so: __strtoul_internal #ld.so: _exit diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c index 86fb366250..4a721c4cc6 100644 --- a/sysdeps/posix/getcwd.c +++ b/sysdeps/posix/getcwd.c @@ -531,5 +531,6 @@ __getcwd (char *buf, size_t size) } #if defined _LIBC && !defined __getcwd +libc_hidden_def (__getcwd) weak_alias (__getcwd, getcwd) #endif 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. */ |