about summary refs log tree commit diff
path: root/include/gshadow.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:19:01 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:19:17 -0700
commit94fd682c9b7c0b1ed95234a491f86b8d529e15c2 (patch)
tree3edc2d7ca99d66f7c8684ad45a806847394d9ed1 /include/gshadow.h
parente1b33bba7c30b36be33fa8bb1e6cffbb65b97730 (diff)
downloadglibc-94fd682c9b7c0b1ed95234a491f86b8d529e15c2.tar.gz
glibc-94fd682c9b7c0b1ed95234a491f86b8d529e15c2.tar.xz
glibc-94fd682c9b7c0b1ed95234a491f86b8d529e15c2.zip
Mark internal gshadow functions with attribute_hidden [BZ #18822]
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.
Diffstat (limited to 'include/gshadow.h')
-rw-r--r--include/gshadow.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/gshadow.h b/include/gshadow.h
index 532801afd0..aa6a5a693e 100644
--- a/include/gshadow.h
+++ b/include/gshadow.h
@@ -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,