* sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
authorRichard Henderson <rth@redhat.com>
Mon, 7 Feb 2005 03:11:46 +0000 (03:11 +0000)
committerRichard Henderson <rth@redhat.com>
Mon, 7 Feb 2005 03:11:46 +0000 (03:11 +0000)
        all the time.

sysdeps/alpha/dl-machine.h

index fd2269b..4166e8c 100644 (file)
@@ -423,26 +423,16 @@ elf_machine_rela (struct link_map *map,
       return;
   else
     {
+      struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
       Elf64_Addr sym_value;
       Elf64_Addr sym_raw_value;
 
-#if defined USE_TLS && !defined RTLD_BOOTSTRAP
-      struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
       sym_raw_value = sym_value = reloc->r_addend;
-      if (sym)
+      if (sym_map)
        {
          sym_raw_value += sym->st_value;
          sym_value = sym_raw_value + sym_map->l_addr;
        }
-#else
-      Elf64_Addr loadbase = RESOLVE (&sym, version, r_type);
-      sym_raw_value = sym_value = reloc->r_addend;
-      if (sym)
-       {
-         sym_raw_value += sym->st_value;
-         sym_value = sym_raw_value + loadbase;
-       }
-#endif
 
       if (r_type == R_ALPHA_GLOB_DAT)
        *reloc_addr = sym_value;