about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@linaro.org>2012-12-07 12:28:52 +0000
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>2012-12-07 12:28:52 +0000
commit443d9489b15400b9c1baa4df67fd2061a50d7304 (patch)
treed6b87b013abd6c581ab35489278a3ea1a1889a4d
parente933a9432cab6ff8d7995b984f0da625b3592f88 (diff)
downloadglibc-443d9489b15400b9c1baa4df67fd2061a50d7304.tar.gz
glibc-443d9489b15400b9c1baa4df67fd2061a50d7304.tar.xz
glibc-443d9489b15400b9c1baa4df67fd2061a50d7304.zip
aarch64: Resolve strtab defined but not used warning.
-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;