This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/2] Mark internal argz functions with attribute_hidden [BZ #18822]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]