[AArch64] Improve PC-relative relocation check for shared library
authorJiong Wang <jiong.wang@arm.com>
Fri, 24 Apr 2015 21:35:04 +0000 (22:35 +0100)
committerJiong Wang <jiong.wang@arm.com>
Fri, 24 Apr 2015 21:35:04 +0000 (22:35 +0100)
commitdcbd20eb1499db937785881aca2f9584a330723c
treeb2038cdd2a8884c24cd830f8b0eb5f625912953b
parentd9e88e902134b6febeef7156ecb6341a593b8c54
[AArch64] Improve PC-relative relocation check for shared library

2015-04-24  Jiong. Wang  <jiong.wang@arm.com>

bfd/
  * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject
  PC-relative relocation for external symbol.

ld/testsuite/
  * ld-aarch64/pcrel.s: New testcase.
  * ld-aarch64/pcrel_pic_defiend_local.d: New expect file.
  * ld-aarch64/pcrel_pic_undefined.d: Ditto.
  * ld-aarch64/aarch64-elf.exp: Run them.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/pcrel.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/pcrel_pic_defined_local.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/pcrel_pic_undefined.d [new file with mode: 0644]