[AArch64] Optimize .gnu.hash table size for executable
authorJiong Wang <jiong.wang@arm.com>
Fri, 20 Jan 2017 13:30:32 +0000 (13:30 +0000)
committerJiong Wang <jiong.wang@arm.com>
Fri, 20 Jan 2017 13:30:32 +0000 (13:30 +0000)
commit7f784814df7067396e9c00b5cdc0eff9cd5c68de
tree56139f5bfeca324ddefe8c90ad921cc617e8ef9c
parentadd3afb219e755e13f4ec1c91aa59223df31a965
[AArch64] Optimize .gnu.hash table size for executable

bfd/
* elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
(elf_backend_hash_symbol): Define.

ld/
* testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
* testsuite/ld-aarch64/func-in-so.s: New test source file.
* testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
* testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/func-in-so.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/func-sym-hash-opt.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/func-sym-hash-opt.s [new file with mode: 0644]