x86-64: Properly set converted_reloc
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Sep 2017 20:41:18 +0000 (13:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Sep 2017 20:43:02 +0000 (13:43 -0700)
commitdc089072135ec2e30337879b1f6147b77c77b341
tree237a2de944c7be5b73d3ccf182d8ac0498d2c6a0
parent5ca79eae06a692cca5bb795045ffb8961e2b8ae8
x86-64: Properly set converted_reloc

Linker now generates

failed to convert GOTPCREL relocation; relink with --no-relax

for more cases.

bfd/

* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Properly set
converted_reloc.

ld/

* testsuite/ld-x86-64/pr19609-5d.d: Updated.
* testsuite/ld-x86-64/pr19609-7a.d: Likewise.
* testsuite/ld-x86-64/pr19609-7c.d: Likewise.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr19609-5d.d
ld/testsuite/ld-x86-64/pr19609-7a.d
ld/testsuite/ld-x86-64/pr19609-7c.d