aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-17 19:44:19 +0000
committerRoland McGrath <roland@gnu.org>2002-10-17 19:44:19 +0000
commiteb775e678d2b66bde8ca5eb378326bace28cb625 (patch)
tree104657e7d4f96075daee3f187b910cc9b0df274c /sysdeps/x86_64
parent2e2dc1a55816552a18a03c3b7d674e96a1c237c2 (diff)
downloadglibc-eb775e678d2b66bde8ca5eb378326bace28cb625.tar
glibc-eb775e678d2b66bde8ca5eb378326bace28cb625.tar.gz
glibc-eb775e678d2b66bde8ca5eb378326bace28cb625.tar.bz2
glibc-eb775e678d2b66bde8ca5eb378326bace28cb625.zip
2002-10-17 Roland McGrath <roland@redhat.com>
* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS before performing the reloc, not before. * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/dl-machine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h
index 118a4b75b5..afae50ac80 100644
--- a/sysdeps/x86_64/dl-machine.h
+++ b/sysdeps/x86_64/dl-machine.h
@@ -429,14 +429,14 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
if (sym != NULL)
# endif
{
+# ifndef RTLD_BOOTSTRAP
+ CHECK_STATIC_TLS (map, sym_map);
+# endif
/* We know the offset of the object the symbol is contained in.
It is a negative value which will be added to the
thread pointer. */
*reloc_addr = (sym->st_value + reloc->r_addend
- sym_map->l_tls_offset);
-# ifndef RTLD_BOOTSTRAP
- CHECK_STATIC_TLS (map, sym_map);
-# endif
}
break;
#endif /* use TLS */