]> sourceware.org Git - glibc.git/commitdiff
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 94095558a35744efffc9be6257a822a33d511a39..0ed599dbd27919c171a25d70774c652dc4a47620 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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]
index 532801afd041e9c7a5f18ac54c80878291f12c4e..aa6a5a693e98eab0efba81c71628543e1f2425fa 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,
This page took 0.075621 seconds and 5 git commands to generate.