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

ChangeLog
mach/shortcut.awk
sysdeps/mach/include/mach-shortcuts-hidden.h [new file with mode: 0644]
sysdeps/mach/include/mach.h

index 7ceaa829a83fa3789bc2ee79e9c262bc7dd674d6..4defdb6462be5c6d8eca2e33bb6185a3311f5016 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Remove
        prototype.
        * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
+       * 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>.
 
 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
 
index ea283d49ba695671fe924c9844577c4e6e1b94b2..090da82b6a81298570be539df7e62b3ae6c5c223 100644 (file)
@@ -1,6 +1,7 @@
 # Icky intimate knowledge of MiG output.
 
 BEGIN { print "/* This file is generated by shortcut.awk.  */";
+       print "#include <mach-shortcuts-hidden.h>";
        echo=1;
        inproto=0; proto=""; arglist="";
       }
@@ -44,6 +45,7 @@ echo == 1 { print $0; }
     print "  return err;"
     print "}";
     print "weak_alias (" call ", " alias ")";
+    print "libc_hidden_def (" call ")";
     # Declare RPC so the weak_alias that follows will work.
     print "extern __typeof (" call ") " rpc ";";
     echo = 1;
diff --git a/sysdeps/mach/include/mach-shortcuts-hidden.h b/sysdeps/mach/include/mach-shortcuts-hidden.h
new file mode 100644 (file)
index 0000000..0942871
--- /dev/null
@@ -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)
index b4c2f452405c950c5742e67e05dd0058fcdf3a79..fff8349b82b1cc0346f2076fbeecab60269ae247 100644 (file)
@@ -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