aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-11-04 21:46:30 +0100
committerThomas Schwinge <thomas@codesourcery.com>2012-11-04 21:46:30 +0100
commite10bb1072cf11e52aad85d59673da86aeafd1b47 (patch)
tree5a3c71941be667ff8ced391026b254220e8dd8d7 /csu
parenta0c2940d67e59b2f19515e2ac7280a7be9629ffa (diff)
downloadglibc-e10bb1072cf11e52aad85d59673da86aeafd1b47.zip
glibc-e10bb1072cf11e52aad85d59673da86aeafd1b47.tar.gz
glibc-e10bb1072cf11e52aad85d59673da86aeafd1b47.tar.bz2
[BZ #5246] Conditionalize use of PTR_DEMANGLE.
Diffstat (limited to 'csu')
-rw-r--r--csu/libc-start.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/csu/libc-start.c b/csu/libc-start.c
index e335b64..e890535 100644
--- a/csu/libc-start.c
+++ b/csu/libc-start.c
@@ -272,7 +272,9 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
result = 0;
# ifdef SHARED
unsigned int *ptr = __libc_pthread_functions.ptr_nthreads;
+# ifdef PTR_DEMANGLE
PTR_DEMANGLE (ptr);
+# endif
# else
extern unsigned int __nptl_nthreads __attribute ((weak));
unsigned int *const ptr = &__nptl_nthreads;