old-cross-binutils/ld/testsuite/ld-aarch64/pcrel_pic_undefined.d
Jiong Wang dcbd20eb14 [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.
2015-04-24 22:35:04 +01:00

10 lines
631 B
Makefile

#name: PC-Rel relocation against undefined
#source: pcrel.s
#ld: -shared -e0
#warning: .*: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol.*fPIC.*
#warning: .*: relocation R_AARCH64_ADR_PREL_PG_HI21_NC against external symbol.*fPIC.*
#warning: .*: relocation R_AARCH64_ADR_PREL_LO21 against external symbol.*fPIC.*
#warning: .*: relocation R_AARCH64_LD_PREL_LO19 against external symbol.*fPIC.*
#warning: .*: relocation R_AARCH64_PREL16 against external symbol.*fPIC.*
#warning: .*: relocation R_AARCH64_PREL32 against external symbol.*fPIC.*
#warning: .*: relocation R_AARCH64_PREL64 against external symbol.*fPIC.*