diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-10-15 06:24:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-10-15 06:24:26 +0000 |
commit | a21a20a33f5b49cfc06ed72f3164099ce226a0b9 (patch) | |
tree | eb1717e035a4f8f86694d722a7f8d568a95c02c5 /linuxthreads/manager.c | |
parent | 1769a73f0bd6e11590ed88eea4391284585216d7 (diff) | |
download | glibc-a21a20a33f5b49cfc06ed72f3164099ce226a0b9.zip glibc-a21a20a33f5b49cfc06ed72f3164099ce226a0b9.tar.gz glibc-a21a20a33f5b49cfc06ed72f3164099ce226a0b9.tar.bz2 |
Update.
2003-10-15 Jakub Jelinek <jakub@redhat.com>
* elf/rtld.c (print_statistics): Print also number of relative
relocations.
Diffstat (limited to 'linuxthreads/manager.c')
-rw-r--r-- | linuxthreads/manager.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index f8647b4..462ce4a 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -70,8 +70,13 @@ static pthread_descr manager_thread; #else static inline pthread_descr thread_segment(int seg) { +# ifdef _STACK_GROWS_UP + return (pthread_descr)(THREAD_STACK_START_ADDRESS + (seg - 1) * STACK_SIZE) + + 1; +# else return (pthread_descr)(THREAD_STACK_START_ADDRESS - (seg - 1) * STACK_SIZE) - 1; +# endif } #endif |