public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] AArch64 resolve warning for defined but unused variable in dl-machine.h
@ 2012-12-07 12:55 Marcus Shawcroft
  0 siblings, 0 replies; only message in thread
From: Marcus Shawcroft @ 2012-12-07 12:55 UTC (permalink / raw)
  To: libc-ports

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

This patch resolves the compiler warning for  'strtab' defined but unused.

/Marcus

2012-12-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>

        * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Remove
        strtab.

[-- Attachment #2: 0001-aarch64-Resolve-strtab-defined-but-not-used-warning.patch --]
[-- Type: application/octet-stream, Size: 839 bytes --]

diff --git a/ports/sysdeps/aarch64/dl-machine.h b/ports/sysdeps/aarch64/dl-machine.h
index 324115d..94f1108 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;
-- 
1.7.11.5


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-07 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-07 12:55 [PATCH] AArch64 resolve warning for defined but unused variable in dl-machine.h Marcus Shawcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).