This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 1/2] Mark internal argz functions with attribute_hidden [BZ #18822]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 18 Aug 2017 06:01:41 -0700
- Subject: [PATCH 1/2] Mark internal argz functions with attribute_hidden [BZ #18822]
- Authentication-results: sourceware.org; auth=none
Mark internal argz functions with attribute_hidden to allow direct
access to them within libc.so and libc.a without using GOT nor PLT.
OK for master?
H.J.
---
[BZ #18822]
* include/argz.h (__argz_add): Add attribute_hidden.
(__argz_add_sep): Likewise.
(__argz_append): Likewise.
(__argz_create_sep): Likewise.
---
include/argz.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/argz.h b/include/argz.h
index 0388c23277..bddebfa221 100644
--- a/include/argz.h
+++ b/include/argz.h
@@ -4,6 +4,11 @@
# ifndef _ISOMAC
+extern __typeof (__argz_add) __argz_add attribute_hidden;
+extern __typeof (__argz_add_sep) __argz_add_sep attribute_hidden;
+extern __typeof (__argz_append) __argz_append attribute_hidden;
+extern __typeof (__argz_create_sep) __argz_create_sep attribute_hidden;
+
libc_hidden_proto (argz_delete)
libc_hidden_proto (__argz_count)
libc_hidden_proto (__argz_stringify)
--
2.13.5