]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog
elf/x86-64: Adjust R_AMD64_DIR64/R_AMD64_DIR32 for PE/x86-64 inputs
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Jan 2021 13:10:58 +0000 (05:10 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Jan 2021 13:19:24 +0000 (05:19 -0800)
commitc2e9a4a3ed1efcbdec68372e7e889470870d6d48
tree9b22646128b83942d9b39477d5fd607580736c0c
parent6d104cac0a03be6f005cef9da37ed39cc49cce5c
elf/x86-64: Adjust R_AMD64_DIR64/R_AMD64_DIR32 for PE/x86-64 inputs

Subtract the value of the section contents for R_AMD64_DIR64 and
R_AMD64_DIR32 relocations when generating ELF output from PE/x86-64
inputs.

bfd/

PR ld/27171
* reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
R_AMD64_DIR32 relocations for PE/x86-64 inputs.

ld/

PR ld/27171
* testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
* testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
* testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
* testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
bfd/ChangeLog
bfd/reloc.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pe-x86-64-5.obj.bz2 [new file with mode: 0644]
ld/testsuite/ld-x86-64/pe-x86-64-5.od [new file with mode: 0644]
ld/testsuite/ld-x86-64/pe-x86-64-5.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/pe-x86-64.exp