about summary refs log tree commit diff
path: root/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 02:47:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 02:50:36 +0200
commitb0344cf5c55b4ca83f383c7a1896a016dfe66687 (patch)
tree6b7a0f359d40771bece104cc4433793b794ef82d /mach
parent7a646a93fadef8841c724501fe723b383069191e (diff)
downloadglibc-b0344cf5c55b4ca83f383c7a1896a016dfe66687.tar.gz
glibc-b0344cf5c55b4ca83f383c7a1896a016dfe66687.tar.xz
glibc-b0344cf5c55b4ca83f383c7a1896a016dfe66687.zip
hurd: Avoid PLT references to syscalls
	* mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
	* sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
	__mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
	__swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
Diffstat (limited to 'mach')
-rw-r--r--mach/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/mach/Makefile b/mach/Makefile
index 2683587b2d..435ae6882d 100644
--- a/mach/Makefile
+++ b/mach/Makefile
@@ -97,7 +97,8 @@ else
 $(mach-syscalls:%=$(objpfx)%.S): $(objpfx)%.S: $(objpfx)mach-syscalls.mk
 	(echo '#include <sysdep.h>'; \
 	 echo 'kernel_trap (__$*,$(sysno-$*),$(nargs-$*))'; \
-	 echo 'weak_alias (__$*, $*)') > $@-new
+	 echo 'weak_alias (__$*, $*)'; \
+	 echo 'libc_hidden_def (__$*)') > $@-new
 	 mv -f $@-new $@
 generated += $(mach-syscalls:=.S)
 endif	# mach-syscalls