diff options
author | Will Newton <willnewton@sourceware.org> | 2013-06-11 09:25:53 +0000 |
---|---|---|
committer | Will Newton <willnewton@sourceware.org> | 2013-06-11 09:25:53 +0000 |
commit | 3368874f758405fa20d779077d66dc62095e9d0a (patch) | |
tree | d27595d8c32c7d085be4008eb6720cb9576bf4ba /bfd/elf64-aarch64.c | |
parent | 47fc0f1f211b925f68e4bb8d34b5df5479fd5596 (diff) | |
download | gdb-3368874f758405fa20d779077d66dc62095e9d0a.zip gdb-3368874f758405fa20d779077d66dc62095e9d0a.tar.gz gdb-3368874f758405fa20d779077d66dc62095e9d0a.tar.bz2 |
bfd/elf64-aarch64.c: Use ELF64_R_SYM instead of ELF32_R_SYM.
Fix incorrect usage of ELF32_R_SYM introduced in ifunc changes.
bfd/ChangeLog:
2013-06-11 Will Newton <will.newton@linaro.org>
* elf64-aarch64.c (elf_aarch64_get_local_sym_hash): Use
ELF64_R_SYM instead of ELF32_R_SYM.
Diffstat (limited to 'bfd/elf64-aarch64.c')
-rw-r--r-- | bfd/elf64-aarch64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf64-aarch64.c b/bfd/elf64-aarch64.c index 5f1b700..19e18b4 100644 --- a/bfd/elf64-aarch64.c +++ b/bfd/elf64-aarch64.c @@ -2033,11 +2033,11 @@ elf_aarch64_get_local_sym_hash (struct elf64_aarch64_link_hash_table *htab, struct elf64_aarch64_link_hash_entry e, *ret; asection *sec = abfd->sections; hashval_t h = ELF_LOCAL_SYMBOL_HASH (sec->id, - ELF32_R_SYM (rel->r_info)); + ELF64_R_SYM (rel->r_info)); void **slot; e.root.indx = sec->id; - e.root.dynstr_index = ELF32_R_SYM (rel->r_info); + e.root.dynstr_index = ELF64_R_SYM (rel->r_info); slot = htab_find_slot_with_hash (htab->loc_hash_table, &e, h, create ? INSERT : NO_INSERT); @@ -2057,7 +2057,7 @@ elf_aarch64_get_local_sym_hash (struct elf64_aarch64_link_hash_table *htab, { memset (ret, 0, sizeof (*ret)); ret->root.indx = sec->id; - ret->root.dynstr_index = ELF32_R_SYM (rel->r_info); + ret->root.dynstr_index = ELF64_R_SYM (rel->r_info); ret->root.dynindx = -1; *slot = ret; } |