From patchwork Sat Jun 16 01:06:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 27883 Received: (qmail 66290 invoked by alias); 16 Jun 2018 01:06:41 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 66123 invoked by uid 89); 16 Jun 2018 01:06:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL, URIBL_RED autolearn=ham version=3.3.2 spammy=36, 25, 7 X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 6/8] hurd: Avoid PLT ref to __mach_msg Date: Sat, 16 Jun 2018 03:06:25 +0200 Message-Id: <20180616010627.29577-6-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/include/mach.h (__mach_msg): Add hidden prototype. * mach/msg.c: Include . (__mach_msg): Add hidden definition. --- ChangeLog | 3 +++ mach/msg.c | 2 ++ sysdeps/mach/include/mach.h | 1 + 3 files changed, 6 insertions(+) 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 and add hidden definition. * sysdeps/mach/include/mach.h: Include . + (__mach_msg): Add hidden prototype. + * mach/msg.c: Include . + (__mach_msg): Add hidden definition. 2018-06-15 Joseph Myers 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 #include +#include #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 #ifndef _ISOMAC libc_hidden_proto (__mach_msg_destroy) +libc_hidden_proto (__mach_msg) #endif #endif