]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sunrpc/rpc_thread.c
elf: Refuse to dlopen PIE objects [BZ #24323]
[thirdparty/glibc.git] / sunrpc / rpc_thread.c
index 068a49f92b2ff79ab172600e826ab4f2802d130d..0abe6dc17204012569e49a77fab5790437ff0273 100644 (file)
@@ -5,6 +5,7 @@
 #include <libc-lock.h>
 #include <libc-tsd.h>
 #include <shlib-compat.h>
+#include <libc-symbols.h>
 
 
 /* Variable used in non-threaded applications or for the first thread.  */
@@ -15,7 +16,7 @@ static __thread struct rpc_thread_variables *thread_rpc_vars
 /*
  * Task-variable destructor
  */
-void __attribute__ ((section ("__libc_thread_freeres_fn")))
+void
 __rpc_thread_destroy (void)
 {
        struct rpc_thread_variables *tvp = thread_rpc_vars;
@@ -36,12 +37,8 @@ __rpc_thread_destroy (void)
                thread_rpc_vars = NULL;
        }
 }
-#ifdef _LIBC_REENTRANT
-text_set_element (__libc_thread_subfreeres, __rpc_thread_destroy);
-#endif
 text_set_element (__libc_subfreeres, __rpc_thread_destroy);
 
-
 /*
  * Initialize RPC multi-threaded operation
  */