Therefore the offset is already correct. */
if (sym != NULL)
*reloc_addr = sym->st_value;
- CHECK_STATIC_TLS (map, sym_map);
# endif
break;
case R_386_TLS_TPOFF32:
thread pointer. To get the variable position in the TLS
block we subtract the offset from that of the TLS block. */
if (sym != NULL)
- *reloc_addr += sym_map->l_tls_offset - sym->st_value;
- CHECK_STATIC_TLS (map, sym_map);
+ {
+ *reloc_addr += sym_map->l_tls_offset - sym->st_value;
+ CHECK_STATIC_TLS (map, sym_map);
+ }
# endif
break;
case R_386_TLS_TPOFF:
It is a negative value which will be added to the
thread pointer. */
if (sym != NULL)
- *reloc_addr += sym->st_value - sym_map->l_tls_offset;
- CHECK_STATIC_TLS (map, sym_map);
+ {
+ *reloc_addr += sym->st_value - sym_map->l_tls_offset;
+ CHECK_STATIC_TLS (map, sym_map);
+ }
# endif
break;
#endif /* use TLS */
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 */