hurd: Avoid PLT ref to __mach_msg

* sysdeps/mach/include/mach.h (__mach_msg): Add hidden prototype.
	* mach/msg.c: Include <mach.h>.
	(__mach_msg): Add hidden definition.
This commit is contained in:
Samuel Thibault 2018-06-16 02:35:17 +02:00
parent c1b7586c54
commit 7a646a93fa
3 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,9 @@
* mach/shortcut.awk: Make syscall stubs include * mach/shortcut.awk: Make syscall stubs include
<mach-shortcuts-hidden.h> and add hidden definition. <mach-shortcuts-hidden.h> and add hidden definition.
* sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>. * 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> 2018-06-15 Joseph Myers <joseph@codesourcery.com>

View File

@ -25,6 +25,7 @@
*/ */
#include <mach/port.h> #include <mach/port.h>
#include <mach/message.h> #include <mach/message.h>
#include <mach.h>
#ifdef MACH_MSG_OVERWRITE #ifdef MACH_MSG_OVERWRITE
/* In variants with this feature, the actual system call is /* In variants with this feature, the actual system call is
@ -125,6 +126,7 @@ __mach_msg (mach_msg_header_t *msg,
return ret; return ret;
} }
weak_alias (__mach_msg, mach_msg) weak_alias (__mach_msg, mach_msg)
libc_hidden_def (__mach_msg)
mach_msg_return_t mach_msg_return_t
__mach_msg_send (mach_msg_header_t *msg) __mach_msg_send (mach_msg_header_t *msg)

View File

@ -3,5 +3,6 @@
#include <mach-shortcuts-hidden.h> #include <mach-shortcuts-hidden.h>
#ifndef _ISOMAC #ifndef _ISOMAC
libc_hidden_proto (__mach_msg_destroy) libc_hidden_proto (__mach_msg_destroy)
libc_hidden_proto (__mach_msg)
#endif #endif
#endif #endif