]> sourceware.org Git - glibc.git/commitdiff
hurd: Avoid PLT references to syscalls
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 Jun 2018 00:47:51 +0000 (02:47 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 Jun 2018 00:50:36 +0000 (02:50 +0200)
* 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.

ChangeLog
mach/Makefile
sysdeps/mach/include/mach/mach_traps.h

index d81c823448e4521b2790b8c0a5b850bba52662da..8c4b6ccd2fa3ed3eef9092e694a898cea7bc33b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        (__mach_msg): Add hidden prototype.
        * mach/msg.c: Include <mach.h>.
        (__mach_msg): Add hidden definition.
+       * 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.
 
 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
 
index 2683587b2d727bee146865ab6edead82fe0274c5..435ae6882d9679463f4c5c2085814e59d52c1728 100644 (file)
@@ -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
index d1b2febac17cebdab7eb7f9ad4b3f3f93b4af8e0..2d4c1f9c5fcd5fb5c83cfd540527da59e6fecc37 100644 (file)
@@ -1,13 +1,21 @@
 #ifndef _MACH_MACH_TRAPS_H
 #include_next <mach/mach_traps.h>
 
-extern mach_port_t __mach_reply_port (void) attribute_hidden;
+extern mach_port_t __mach_reply_port (void);
+libc_hidden_proto (__mach_reply_port)
 extern mach_port_t __mach_thread_self (void);
+libc_hidden_proto (__mach_thread_self)
 extern mach_port_t (__mach_task_self) (void);
-extern mach_port_t (__mach_host_self) (void) attribute_hidden;
-extern boolean_t __swtch (void) attribute_hidden;
-extern boolean_t __swtch_pri (int priority) attribute_hidden;
+libc_hidden_proto (__mach_task_self)
+extern mach_port_t (__mach_host_self) (void);
+libc_hidden_proto (__mach_host_self)
+extern boolean_t __swtch (void);
+libc_hidden_proto (__swtch)
+extern boolean_t __swtch_pri (int priority);
+libc_hidden_proto (__swtch_pri)
 kern_return_t __thread_switch (mach_port_t new_thread,
-                            int option, mach_msg_timeout_t option_time) attribute_hidden;
-kern_return_t __evc_wait (unsigned int event) attribute_hidden;
+                            int option, mach_msg_timeout_t option_time);
+libc_hidden_proto (__thread_switch)
+kern_return_t __evc_wait (unsigned int event);
+libc_hidden_proto (__evc_wait)
 #endif
This page took 0.074916 seconds and 5 git commands to generate.