diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-16 02:35:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-16 02:50:30 +0200 |
commit | 7a646a93fadef8841c724501fe723b383069191e (patch) | |
tree | 6798c3649a7a74738f91657b4f8c9cab7ba93056 | |
parent | c1b7586c544957998c0f53711fa91e5de72cc819 (diff) | |
download | glibc-7a646a93fadef8841c724501fe723b383069191e.tar.gz glibc-7a646a93fadef8841c724501fe723b383069191e.tar.xz glibc-7a646a93fadef8841c724501fe723b383069191e.zip |
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.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | mach/msg.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/include/mach.h | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 4defdb6462..d81c823448 100644 --- 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> diff --git a/mach/msg.c b/mach/msg.c index bccad7fd26..8eb252a16e 100644 --- a/mach/msg.c +++ b/mach/msg.c @@ -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) diff --git a/sysdeps/mach/include/mach.h b/sysdeps/mach/include/mach.h index fff8349b82..65f8d9764b 100644 --- a/sysdeps/mach/include/mach.h +++ b/sysdeps/mach/include/mach.h @@ -3,5 +3,6 @@ #include <mach-shortcuts-hidden.h> #ifndef _ISOMAC libc_hidden_proto (__mach_msg_destroy) +libc_hidden_proto (__mach_msg) #endif #endif |