This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[hurd,commited] hurd: Fix rtld link
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Sun, 3 Sep 2017 04:33:45 +0200
- Subject: [hurd,commited] hurd: Fix rtld link
- Authentication-results: sourceware.org; auth=none
dl-tunables.c now uses __access_noerrno in addition to __access.
* sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): New function.
---
ChangeLog | 1 +
sysdeps/mach/hurd/dl-sysdep.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 0567c67675..2e6083b372 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
Fix <unistd.h> inclusion.
* sysdeps/posix/pwritev2.c: Include <errno.h>.
* sysdeps/posix/pwritev64v2.c: Include <errno.h>.
+ * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): New function.
2017-09-01 Joseph Myers <joseph@codesourcery.com>
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 6d5c1abf83..2bfa64f02a 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -557,6 +557,12 @@ __access (const char *file, int type)
errno = ENOSYS;
return -1;
}
+int weak_function
+__access_noerrno (const char *file, int type)
+{
+ errno = ENOSYS;
+ return -1;
+}
pid_t weak_function
__getpid (void)
--
2.14.1