From 443d9489b15400b9c1baa4df67fd2061a50d7304 Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Fri, 7 Dec 2012 12:28:52 +0000 Subject: aarch64: Resolve strtab defined but not used warning. --- ports/ChangeLog.aarch64 | 5 +++++ ports/sysdeps/aarch64/dl-machine.h | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'ports') diff --git a/ports/ChangeLog.aarch64 b/ports/ChangeLog.aarch64 index 3b70cd5..ec3dcaf 100644 --- a/ports/ChangeLog.aarch64 +++ b/ports/ChangeLog.aarch64 @@ -1,3 +1,8 @@ +2012-12-07 Marcus Shawcroft + + * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Remove + strtab. + 2012-12-04 Steve McIntyre * 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 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; -- cgit v1.1