diff options
author | Joseph Myers <joseph@codesourcery.com> | 2023-11-23 19:01:32 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2023-11-23 19:01:32 +0000 |
commit | 2e0c0ff95ca0e3122eb5b906ee26a31f284ce5ab (patch) | |
tree | 4cba7b7727128374d4c8a659f32b0acef7a13bba /sysdeps/mach/hurd/dl-sysdep.c | |
parent | 472894d2cfee5751b44c0aaa71ed87df81c8e62e (diff) | |
download | glibc-2e0c0ff95ca0e3122eb5b906ee26a31f284ce5ab.tar.gz glibc-2e0c0ff95ca0e3122eb5b906ee26a31f284ce5ab.tar.xz glibc-2e0c0ff95ca0e3122eb5b906ee26a31f284ce5ab.zip |
Remove __access_noerrno
A recent commit, apparently commit 6c6fce572fb8f583f14d898e54fd7d25ae91cf56 "elf: Remove /etc/suid-debug support", resulted in localplt failures for i686-gnu and x86_64-gnu: Missing required PLT reference: ld.so: __access_noerrno After that commit, __access_noerrno is actually no longer used at all. So rather than just removing the localplt expectation for that symbol for Hurd, completely remove all definitions of and references to that symbol. Tested for x86_64, and with build-many-glibcs.py for i686-gnu and x86_64-gnu.
Diffstat (limited to 'sysdeps/mach/hurd/dl-sysdep.c')
-rw-r--r-- | sysdeps/mach/hurd/dl-sysdep.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 6994f8f7b6..38e55acc43 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -542,22 +542,15 @@ __stat64 (const char *file, struct stat64 *buf) } libc_hidden_def (__stat64) -/* This function is called by the dynamic linker (rtld.c) to check - whether debugging malloc is allowed even for SUID binaries. This - stub will always fail, which means that malloc-debugging is always - disabled for SUID binaries. */ +/* This function is called by the dynamic linker (rtld.c) to check for + existence of /etc/ld.so.preload. This stub will always fail, which + means that /etc/ld.so.preload is unsupported. */ check_no_hidden(__access); int weak_function __access (const char *file, int type) { return __hurd_fail (ENOSYS); } -check_no_hidden(__access_noerrno); -int weak_function -__access_noerrno (const char *file, int type) -{ - return -1; -} int __rtld_execve (const char *file_name, char *const argv[], |