Correct the generation of OR1K pc-relative relocations.
authorPeter Zotov <whitequark@whitequark.org>
Fri, 25 Sep 2015 14:21:14 +0000 (15:21 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 25 Sep 2015 14:21:14 +0000 (15:21 +0100)
commit8a9e7a9121490a8c64d8c17f5be510e43104f6d9
tree43e5f465538c635dfee83fddab4f3a9e5adeb42d
parent6cd8405efd699ed7686671d6f0d9caf20757b7a3
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.
bfd/ChangeLog
bfd/elf32-or1k.c
gas/ChangeLog
gas/config/tc-or1k.c
gas/config/tc-or1k.h
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/eh-frame-hdr.d