From: H.J. Lu Date: Mon, 2 Oct 2017 00:37:27 +0000 (-0700) Subject: Hide internal __hasmntopt function [BZ #18822] X-Git-Tag: glibc-2.27~788 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d19033298f832f5b3e10da6f07e7959f0483df74;p=thirdparty%2Fglibc.git Hide internal __hasmntopt function [BZ #18822] Hide internal __hasmntopt function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/mntent.h (__hasmntopt): Add libc_hidden_proto. * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def. --- diff --git a/ChangeLog b/ChangeLog index 7514e861dde..24de2e0a6d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-10-01 H.J. Lu + + [BZ #18822] + * include/mntent.h (__hasmntopt): Add libc_hidden_proto. + * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def. + 2017-10-01 H.J. Lu [BZ #18822] diff --git a/include/mntent.h b/include/mntent.h index 169210fc660..a16298ed6e0 100644 --- a/include/mntent.h +++ b/include/mntent.h @@ -15,6 +15,7 @@ extern char *__hasmntopt (const struct mntent *__mnt, const char *__opt); libc_hidden_proto (__setmntent) libc_hidden_proto (__getmntent_r) libc_hidden_proto (__endmntent) +libc_hidden_proto (__hasmntopt) # endif /* !_ISOMAC */ #endif diff --git a/misc/mntent_r.c b/misc/mntent_r.c index 30f55212be3..96bd1e2fb4f 100644 --- a/misc/mntent_r.c +++ b/misc/mntent_r.c @@ -293,4 +293,5 @@ __hasmntopt (const struct mntent *mnt, const char *opt) return NULL; } +libc_hidden_def (__hasmntopt) weak_alias (__hasmntopt, hasmntopt)