This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi!
I've noticed that I was accidentally building alpha --without-tls, not
--with-tls. Fixing that revealed a bug in dl-machine.h.
With this --with-tls --without-__thread passes make check on alpha.
2003-02-13 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
subtracting map->l_tls_offset.
--- libc/sysdeps/alpha/dl-machine.h.jj 2003-01-30 05:01:48.000000000 -0500
+++ libc/sysdeps/alpha/dl-machine.h 2003-02-13 16:23:45.000000000 -0500
@@ -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
}
Jakub
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |