]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark internal rpc functions with attribute_hidden [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 22:54:51 +0000 (15:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 22:55:15 +0000 (15:55 -0700)
Mark internal rpc functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* include/rpc/rpc.h (__rpc_thread_variables): Add
attribute_hidden.
(__rpc_thread_svc_cleanup): Likewise.
(__rpc_thread_clnt_cleanup): Likewise.
(__rpc_thread_key_cleanup): Likewise.

ChangeLog
include/rpc/rpc.h

index 56b44eafc520f961eb255bbdfd6ed54d2a88fbf7..9ede6b7920da6ede3bd724cd9da17b0d7c782728 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * include/rpc/rpc.h (__rpc_thread_variables): Add
+       attribute_hidden.
+       (__rpc_thread_svc_cleanup): Likewise.
+       (__rpc_thread_clnt_cleanup): Likewise.
+       (__rpc_thread_key_cleanup): Likewise.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 60c78968decb83a4d86a95e91fc3ce2511d84795..1fb925e85ca914a345172883022730f4b7ffcc45 100644 (file)
@@ -41,10 +41,10 @@ struct rpc_thread_variables {
 };
 
 extern struct rpc_thread_variables *__rpc_thread_variables(void)
-     __attribute__ ((const));
-extern void __rpc_thread_svc_cleanup (void);
-extern void __rpc_thread_clnt_cleanup (void);
-extern void __rpc_thread_key_cleanup (void);
+     __attribute__ ((const)) attribute_hidden;
+extern void __rpc_thread_svc_cleanup (void) attribute_hidden;
+extern void __rpc_thread_clnt_cleanup (void) attribute_hidden;
+extern void __rpc_thread_key_cleanup (void) attribute_hidden;
 
 extern void __rpc_thread_destroy (void);