x86: Change PLT32 reloc against section to PC32
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 19 Jul 2020 13:51:19 +0000 (06:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 19 Jul 2020 13:51:32 +0000 (06:51 -0700)
commit2585b7a5ce5830e60a089aa2316a329558902f0c
tree6ff218fb5b0fe5ad80a2cdabd0aa909416e0a6a2
parent4609ada49f559880e85aecc2f37f377e5bff8696
x86: Change PLT32 reloc against section to PC32

Commit 292676c1 resolved PLT32 reloc aganst local symbol to section.
Since PLT32 relocation must be against symbols, turn such PLT32
relocation into PC32 relocation.

gas/

PR gas/26263
* config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
against section to PC32 reloc.
* testsuite/gas/i386/relax-5.d: Updated.
* testsuite/gas/i386/x86-64-relax-4.d: Likewise.

ld/

PR gas/26263
* testsuite/ld-i386/i386.exp: Run PR gas/26263 test.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr26263.d: New file.
* testsuite/ld-x86-64/pr26263.d: Likewise.
* testsuite/ld-x86-64/pr26263.s: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/relax-5.d
gas/testsuite/gas/i386/x86-64-relax-4.d
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr26263.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26263.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26263.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp