aarch64: Resolve strtab defined but not used warning.

This commit is contained in:
Marcus Shawcroft 2012-12-07 12:28:52 +00:00
parent e933a9432c
commit 443d9489b1
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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;