]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: Clear the R_X86_64_converted_reloc_bit bit
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Jul 2018 20:08:09 +0000 (13:08 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Jul 2018 13:38:15 +0000 (06:38 -0700)
commitb29dd6c33f8c3d03d07da5d80b60a05a92005462
tree1c4f14d6ac65a07f8f95b4fed0e4961bcf072af6
parent30d282bede88e75e2efaa85b76cc4fc2cf8a16f3
x86-64: Clear the R_X86_64_converted_reloc_bit bit

We need to clear the R_X86_64_converted_reloc_bit bit after setting it
to avoid leaking it out by --emit-relocs.

bfd/

PR ld/23324
* elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
R_X86_64_converted_reloc_bit bit.

ld/

PR ld/23324
* testsuite/ld-x86-64/pr23324.s: New file.
* testsuite/ld-x86-64/pr23324a.d: Likewise.
* testsuite/ld-x86-64/pr23324b.d: Likewise.

(cherry picked from commit b638b5d57fafc84a8dc0ff91d7579a3c24aad90c)
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr23324.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr23324a.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr23324b.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp