]> sourceware.org Git - glibc.git/commitdiff
hurd: Avoid PLT ref to __mach_msg
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 Jun 2018 00:35:17 +0000 (02:35 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 Jun 2018 00:50:30 +0000 (02:50 +0200)
* sysdeps/mach/include/mach.h (__mach_msg): Add hidden prototype.
* mach/msg.c: Include <mach.h>.
(__mach_msg): Add hidden definition.

ChangeLog
mach/msg.c
sysdeps/mach/include/mach.h

index 4defdb6462be5c6d8eca2e33bb6185a3311f5016..d81c823448e4521b2790b8c0a5b850bba52662da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,9 @@
        * 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>.
+       (__mach_msg): Add hidden prototype.
+       * mach/msg.c: Include <mach.h>.
+       (__mach_msg): Add hidden definition.
 
 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
 
index bccad7fd26e6e1e8c60e14b469cb1ec899f60691..8eb252a16e036d72248d1f8616645f495e297863 100644 (file)
@@ -25,6 +25,7 @@
  */
 #include <mach/port.h>
 #include <mach/message.h>
+#include <mach.h>
 
 #ifdef MACH_MSG_OVERWRITE
 /* In variants with this feature, the actual system call is
@@ -125,6 +126,7 @@ __mach_msg (mach_msg_header_t *msg,
   return ret;
 }
 weak_alias (__mach_msg, mach_msg)
+libc_hidden_def (__mach_msg)
 
 mach_msg_return_t
 __mach_msg_send        (mach_msg_header_t *msg)
index fff8349b82b1cc0346f2076fbeecab60269ae247..65f8d9764b3c5786579fb9c41240cd87802c6d4b 100644 (file)
@@ -3,5 +3,6 @@
 #include <mach-shortcuts-hidden.h>
 #ifndef _ISOMAC
 libc_hidden_proto (__mach_msg_destroy)
+libc_hidden_proto (__mach_msg)
 #endif
 #endif
This page took 0.076045 seconds and 5 git commands to generate.