]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Don't check R_386_NONE nor R_X86_64_NONE
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 9 Jan 2024 14:30:28 +0000 (06:30 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 9 Jan 2024 14:39:42 +0000 (06:39 -0800)
commit2e93abb858ae4ff2b8605b4a94988068869c0ff1
tree019a40ce778e4afa7f2dc1d287405f6e21db6d73
parent862180a2d10963494356ec089a16b808bab736bd
x86: Don't check R_386_NONE nor R_X86_64_NONE

Update x86 ELF linker to skip R_386_NONE/R_X86_64_NONE when scanning
relocations.

bfd/

* PR ld/31047
* elf32-i386.c (elf_i386_scan_relocs): Don't check R_386_NONE.
* elf64-x86-64.c (elf_x86_64_scan_relocs): Don't check
R_X86_64_NONE.

ld/

* PR ld/31047
* testsuite/ld-i386/i386.exp: Run PR ld/31047 test.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr31047.d: New file.
* testsuite/ld-x86-64/pr31047-x32.d: Likewise.
* testsuite/ld-x86-64/pr31047.d: Likewise.
* testsuite/ld-x86-64/pr31047a.s: Likewise.
* testsuite/ld-x86-64/pr31047b.s: Likewise.
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr31047.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr31047-x32.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr31047.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr31047a.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr31047b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp