This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 14/58] Mark internal gshadow functions with attribute_hidden [BZ #18822]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 1 Sep 2017 10:59:45 -0700
- Subject: [PATCH 14/58] Mark internal gshadow functions with attribute_hidden [BZ #18822]
- Authentication-results: sourceware.org; auth=none
- References: <20170901180029.9527-1-hjl.tools@gmail.com>
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.
---
include/gshadow.h | 6 ++++--
1 file 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,
--
2.13.5