diff options
author | Jiong Wang <jiong.wang@arm.com> | 2015-01-13 11:36:54 +0000 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-01-13 11:36:54 +0000 |
commit | 0941db698eba22727c9a944b5da5c76ae93cc664 (patch) | |
tree | fb75c96d8a0db595586d49ec1399d4aef661e11d /bfd/elfnn-aarch64.c | |
parent | 0172429c3b2656e96ac390a9cdfc441f63df41c9 (diff) | |
download | gdb-0941db698eba22727c9a944b5da5c76ae93cc664.zip gdb-0941db698eba22727c9a944b5da5c76ae93cc664.tar.gz gdb-0941db698eba22727c9a944b5da5c76ae93cc664.tar.bz2 |
[AArch64] Fix function pointer variable with -Bsymbolic-functions
bfd/ChangeLog
2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use
SYMBOLIC_BIND to check if a symbol should be bound symbolically.
ld/testsuite/ChangeLog
2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
* ld-aarch64/aarch64-elf.exp: Added relocs-257-symbolic-func test.
* ld-aarch64/relocs-257-symbolic-func.d: New file.
* ld-aarch64/relocs-257-symbolic-func.s: Likewise.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r-- | bfd/elfnn-aarch64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index c8401c1..e5939a8 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -4337,7 +4337,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto, memset (&outrel, 0, sizeof outrel); else if (h != NULL && h->dynindx != -1 - && (!info->shared || !info->symbolic || !h->def_regular)) + && (!info->shared || !SYMBOLIC_BIND (info, h) || !h->def_regular)) outrel.r_info = ELFNN_R_INFO (h->dynindx, r_type); else { |