mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-06 12:00:24 +08:00
(elf_machine_rela): Add instead of subtracting map->l_tls_offset.
This commit is contained in:
parent
c157224cb8
commit
6e5bb2d534
@ -627,12 +627,12 @@ elf_machine_rela (struct link_map *map,
|
||||
else if (r_type == R_ALPHA_TPREL64)
|
||||
{
|
||||
#ifdef RTLD_BOOTSTRAP
|
||||
*reloc_addr = sym_raw_value - map->l_tls_offset;
|
||||
*reloc_addr = sym_raw_value + map->l_tls_offset;
|
||||
#else
|
||||
if (sym_map)
|
||||
{
|
||||
CHECK_STATIC_TLS (map, sym_map);
|
||||
*reloc_addr = sym_raw_value - sym_map->l_tls_offset;
|
||||
*reloc_addr = sym_raw_value + sym_map->l_tls_offset;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user