mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
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.
This commit is contained in:
parent
b4744101f3
commit
d19033298f
@ -1,3 +1,9 @@
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[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 <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
|
@ -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
|
||||
|
@ -293,4 +293,5 @@ __hasmntopt (const struct mntent *mnt, const char *opt)
|
||||
|
||||
return NULL;
|
||||
}
|
||||
libc_hidden_def (__hasmntopt)
|
||||
weak_alias (__hasmntopt, hasmntopt)
|
||||
|
Loading…
Reference in New Issue
Block a user