From cb8312455b85a4a6c998b4c4a892c28b74cc3c4d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 9 Oct 2014 11:22:33 +0000 Subject: Don't use INTDEF/INTUSE with __cxa_atexit (bug 14132). This patch removes use of the obsolete INTDEF/INTUSE mechanism for __cxa_atexit, replacing it with libc_hidden_def/libc_hidden_proto. Tested for x86_64 that installed stripped shared libraries are unchanged by the patch. [BZ #14132] * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead of INTDEF. * include/stdlib.h (__cxa_atexit_internal): Remove declaration. (__cxa_atexit): Use libc_hidden_proto. [!NOT_IN_libc] (__cxa_atexit): Remove macro definition. --- stdlib/cxa_atexit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/cxa_atexit.c') diff --git a/stdlib/cxa_atexit.c b/stdlib/cxa_atexit.c index 21dec7b543..6fa8ad4574 100644 --- a/stdlib/cxa_atexit.c +++ b/stdlib/cxa_atexit.c @@ -57,7 +57,7 @@ __cxa_atexit (void (*func) (void *), void *arg, void *d) { return __internal_atexit (func, arg, d, &__exit_funcs); } -INTDEF(__cxa_atexit) +libc_hidden_def (__cxa_atexit) /* We change global data, so we need locking. */ -- cgit 1.4.1