From 8a9e7a9121490a8c64d8c17f5be510e43104f6d9 Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Fri, 25 Sep 2015 15:21:14 +0100 Subject: Correct the generation of OR1K pc-relative relocations. gas PR ld/18759 * config/tc-or1k.c (tc_gen_reloc): Correct computation of PC relative relocs. * config/tc-or1k.h (GAS_CGEN_PRCEL_R_TYPE): Delete. bfd * elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE. (R_OR1K_16_PCREL): Likewise. (R_OR1K_8_PCREL): Likewise. ld/tests * ld-elf/eh-frame-hdr: Expect to pass on the or1k-linux target. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-elf/eh-frame-hdr.d | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8a1eef2..3a6a509 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-11 Peter Zotov + + PR ld/18759 + * ld-elf/eh-frame-hdr: Expect to pass on the or1k-linux target. + 2015-09-22 H.J. Lu * ld-mips-elf/pie-n32.d: Updated. diff --git a/ld/testsuite/ld-elf/eh-frame-hdr.d b/ld/testsuite/ld-elf/eh-frame-hdr.d index 4214ed5..e981dff 100644 --- a/ld/testsuite/ld-elf/eh-frame-hdr.d +++ b/ld/testsuite/ld-elf/eh-frame-hdr.d @@ -2,7 +2,7 @@ #ld: -e _start --eh-frame-hdr #objdump: -hw #target: cfi -#xfail: avr*-*-* or1k-*-* visium-*-* +#xfail: avr*-*-* or1k*-*-elf or1k*-*-rtems* visium-*-* # avr doesn't support shared libraries. #... [0-9] .eh_frame_hdr 0*[12][048c] .* -- cgit v1.1