summaryrefslogtreecommitdiff
path: root/sysdeps/mach/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-14 01:01:57 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-14 01:01:57 +0200
commit126b3ec370f0fa8ecbbce27c8c4b621b1ce6f02d (patch)
tree5a81277a130a2712556b825cdd8b89e157401bad /sysdeps/mach/include
parentc8c6e6d6d0859e5e9b3c6f8b3daa4e6b6e709873 (diff)
hurd: Avoid PLTs for __mach_thread_self and __mach_reply_port
* mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self, __mach_task_self, __mach_host_self, __swtch, __swtch_pri, __thread_switch, __evc_wait): Move declarations to... * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add attribute_hidden.
Diffstat (limited to 'sysdeps/mach/include')
-rw-r--r--sysdeps/mach/include/mach/mach_traps.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/mach/include/mach/mach_traps.h b/sysdeps/mach/include/mach/mach_traps.h
new file mode 100644
index 0000000000..838386243f
--- /dev/null
+++ b/sysdeps/mach/include/mach/mach_traps.h
@@ -0,0 +1,13 @@
+#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_thread_self (void) attribute_hidden;
+extern mach_port_t (__mach_task_self) (void) attribute_hidden;
+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;
+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;
+#endif