about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ports/ChangeLog.aarch645
-rw-r--r--ports/sysdeps/aarch64/dl-machine.h8
2 files changed, 6 insertions, 7 deletions
diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64
index 3b70cd5876..ec3dcafb8b 100644
--- a/ports/ChangeLog.aarch64
+++ b/ports/ChangeLog.aarch64
@@ -1,3 +1,8 @@
+2012-12-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
+
+	* sysdeps/aarch64/dl-machine.h (elf_machine_rela): Remove
+	strtab.
+
 2012-12-04  Steve McIntyre <steve.mcintyre@linaro.org>
 
 	* sysdeps/unix/sysv/linux/aarch64/ldconfig.h: Add entries
diff --git a/ports/sysdeps/aarch64/dl-machine.h b/ports/sysdeps/aarch64/dl-machine.h
index 324115d272..94f1108e15 100644
--- a/ports/sysdeps/aarch64/dl-machine.h
+++ b/ports/sysdeps/aarch64/dl-machine.h
@@ -320,18 +320,12 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
 
 	case R_AARCH64_TLS_DTPREL64:
 	  if (sym)
-	    {
-	      const char *strtab;
-	      strtab = (const void *) D_PTR (map, l_info[DT_STRTAB]);
-	      *reloc_addr = sym->st_value + reloc->r_addend;
-	    }
+	    *reloc_addr = sym->st_value + reloc->r_addend;
 	  break;
 
 	case R_AARCH64_TLS_TPREL64:
 	  if (sym)
 	    {
-	      const char *strtab;
-	      strtab = (const void *) D_PTR (map, l_info[DT_STRTAB]);
 	      CHECK_STATIC_TLS (map, sym_map);
 	      *reloc_addr =
 		sym->st_value + reloc->r_addend + sym_map->l_tls_offset;