diff options
author | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2012-12-07 12:28:52 +0000 |
---|---|---|
committer | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2012-12-07 12:28:52 +0000 |
commit | 443d9489b15400b9c1baa4df67fd2061a50d7304 (patch) | |
tree | d6b87b013abd6c581ab35489278a3ea1a1889a4d /ports/sysdeps/aarch64 | |
parent | e933a9432cab6ff8d7995b984f0da625b3592f88 (diff) | |
download | glibc-443d9489b15400b9c1baa4df67fd2061a50d7304.tar.gz |
aarch64: Resolve strtab defined but not used warning.
Diffstat (limited to 'ports/sysdeps/aarch64')
-rw-r--r-- | ports/sysdeps/aarch64/dl-machine.h | 8 |
1 files changed, 1 insertions, 7 deletions
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; |