diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-16 02:19:47 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-16 02:48:41 +0200 |
commit | c1b7586c544957998c0f53711fa91e5de72cc819 (patch) | |
tree | 3ba2e8381998df96f3b22b9cac2e9bd22d8e6bd3 /sysdeps | |
parent | 932d05f0dc89b905570bf8bd69bfe7fda2821ccf (diff) | |
download | glibc-c1b7586c544957998c0f53711fa91e5de72cc819.zip glibc-c1b7586c544957998c0f53711fa91e5de72cc819.tar.gz glibc-c1b7586c544957998c0f53711fa91e5de72cc819.tar.bz2 |
hurd: Avoid PLT references to shortcuts
* sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
* mach/shortcut.awk: Make syscall stubs include
<mach-shortcuts-hidden.h> and add hidden definition.
* sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/include/mach-shortcuts-hidden.h | 13 | ||||
-rw-r--r-- | sysdeps/mach/include/mach.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/mach/include/mach-shortcuts-hidden.h b/sysdeps/mach/include/mach-shortcuts-hidden.h new file mode 100644 index 0000000..0942871 --- /dev/null +++ b/sysdeps/mach/include/mach-shortcuts-hidden.h @@ -0,0 +1,13 @@ +#include <mach-shortcuts.h> +libc_hidden_proto (__task_create) +libc_hidden_proto (__task_terminate) +libc_hidden_proto (__vm_allocate) +libc_hidden_proto (__vm_deallocate) +libc_hidden_proto (__task_suspend) +libc_hidden_proto (__task_set_special_port) +libc_hidden_proto (__vm_map) +libc_hidden_proto (__thread_depress_abort) +libc_hidden_proto (__mach_port_allocate_name) +libc_hidden_proto (__mach_port_allocate) +libc_hidden_proto (__mach_port_deallocate) +libc_hidden_proto (__mach_port_insert_right) diff --git a/sysdeps/mach/include/mach.h b/sysdeps/mach/include/mach.h index b4c2f45..fff8349 100644 --- a/sysdeps/mach/include/mach.h +++ b/sysdeps/mach/include/mach.h @@ -1,5 +1,6 @@ #ifndef _MACH_H #include_next <mach.h> +#include <mach-shortcuts-hidden.h> #ifndef _ISOMAC libc_hidden_proto (__mach_msg_destroy) #endif |