]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
x86-64/ELF: clear src_mask for all reloc types
authorJan Beulich <jbeulich@suse.com>
Fri, 7 May 2021 10:05:12 +0000 (12:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 May 2021 10:05:12 +0000 (12:05 +0200)
commit17c6c3b99156fe82c1e637e1a5fd9f163ac788c8
tree71c76cc1471f142456595eea8af28d3e1eadb1ee
parent98da05bf2698b55b73453480a3fbb92f163d2c7b
x86-64/ELF: clear src_mask for all reloc types

x86-64 uses rela relocations. The comment next to the field's declaration
says "Non-zero values for ELF USE_RELA targets should be viewed with
suspicion ..." And indeed the fields being non-zero causes section
contents to be accumulated into the final relocated values in addition to
the relocations' addends, which is contrary to the ELF spec.
bfd/ChangeLog
bfd/elf64-x86-64.c
gas/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/rela.d [new file with mode: 0644]
gas/testsuite/gas/i386/rela.s [new file with mode: 0644]
ld/ChangeLog
ld/testsuite/ld-x86-64/rela.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp