From 2e0c0ff95ca0e3122eb5b906ee26a31f284ce5ab Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 23 Nov 2023 19:01:32 +0000 Subject: 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. --- sysdeps/unix/sysv/linux/not-errno.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/not-errno.h b/sysdeps/unix/sysv/linux/not-errno.h index 9100bde124..e55a7c4698 100644 --- a/sysdeps/unix/sysv/linux/not-errno.h +++ b/sysdeps/unix/sysv/linux/not-errno.h @@ -19,23 +19,6 @@ #include #include -/* This function is used on maybe_enable_malloc_check (elf/dl-tunables.c) - and to avoid having to build/use multiple versions if stack protection - in enabled it is defined as inline. */ -static inline int -__access_noerrno (const char *pathname, int mode) -{ - int res; -#ifdef __NR_access - res = INTERNAL_SYSCALL_CALL (access, pathname, mode); -#else - res = INTERNAL_SYSCALL_CALL (faccessat, AT_FDCWD, pathname, mode); -#endif - if (INTERNAL_SYSCALL_ERROR_P (res)) - return INTERNAL_SYSCALL_ERRNO (res); - return 0; -} - static inline int __kill_noerrno (pid_t pid, int sig) { -- cgit v1.2.3