From 0d6ee549bc86fd330672a79d9a87d2c3825eea67 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 5 Jul 2010 14:12:22 +0200 Subject: don't make __errno_location / __h_errno_location hidden Closes #2089 (https://bugs.busybox.net/show_bug.cgi?id=2089) __errno_location / __h_errno_location access has to go through the PLT like malloc/free, so the linuxthread variants gets used instead when compiling with -pthread. Based on http://github.com/mat-c/uClibc/commit/328d392c54aa5dc2b8e7f398a419087de497de2b Signed-off-by: Peter Korsgaard Signed-off-by: Austin Foxley --- libc/misc/internals/__errno_location.c | 3 --- libc/misc/internals/__h_errno_location.c | 1 - 2 files changed, 4 deletions(-) (limited to 'libc/misc/internals') diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c index aec7641ce..71c5461a7 100644 --- a/libc/misc/internals/__errno_location.c +++ b/libc/misc/internals/__errno_location.c @@ -15,6 +15,3 @@ __errno_location (void) { return &errno; } -#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */ -libc_hidden_weak(__errno_location) -#endif diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c index 213d39894..235df4ec6 100644 --- a/libc/misc/internals/__h_errno_location.c +++ b/libc/misc/internals/__h_errno_location.c @@ -10,4 +10,3 @@ int * weak_const_function __h_errno_location (void) { return &h_errno; } -libc_hidden_weak(__h_errno_location) -- cgit v1.2.3