mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
elf: make tst-tls_tp_offset compare &thread_var to THREAD_SELF
rather than pthread_self (), which in htl is not a pointer into dtv, but an index.
This commit is contained in:
parent
dbe3e6e022
commit
4ab62ce605
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ do_test (void)
|
|||
ptrdiff_t block_offset = ((struct link_map *) _r_debug.r_map)->l_tls_offset;
|
||||
printf ("main program TLS block offset: %td\n", block_offset);
|
||||
|
||||
if ((uintptr_t) &thread_var < (uintptr_t) pthread_self ())
|
||||
if ((uintptr_t) &thread_var < (uintptr_t) THREAD_SELF)
|
||||
{
|
||||
puts("TLS variables are located before struct pthread.");
|
||||
TEST_COMPARE (((intptr_t) __thread_pointer () - block_offset)
|
||||
|
|
Loading…
Add table
Reference in a new issue