Mark internal gshadow functions with attribute_hidden [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 22:19:01 +0000 (15:19 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 22:19:17 +0000 (15:19 -0700)
Mark internal gshadow functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
(__sgetsgent_r): Likewise.

ChangeLog
include/gshadow.h

index 9409555..0ed599d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
+       * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
+       (__sgetsgent_r): Likewise.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
        * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
        (__statfs64): Likewise.
        (__fstatfs64): Likewise.
index 532801a..aa6a5a6 100644 (file)
@@ -4,9 +4,11 @@
 # ifndef _ISOMAC
 
 extern int __fgetsgent_r (FILE *stream, struct sgrp *resbuf, char *buffer,
-                         size_t buflen, struct sgrp **result);
+                         size_t buflen, struct sgrp **result)
+     attribute_hidden;
 extern int __sgetsgent_r (const char *string, struct sgrp *resbuf,
-                         char *buffer, size_t buflen, struct sgrp **result);
+                         char *buffer, size_t buflen, struct sgrp **result)
+     attribute_hidden;
 
 struct parser_data;
 extern int _nss_files_parse_sgent (char *line, struct sgrp *result,