ld/x86-64: Add PR gold/26939 tests
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 24 Nov 2020 19:32:14 +0000 (11:32 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 24 Nov 2020 19:32:26 +0000 (11:32 -0800)
commitd0089f12f6f40e7b69fd432ef4915908407379f2
tree9badcdd8208ee829a6bbe48628bec3a1197a2183
parent1c64f6cbcfb2acef1f80b6c03d989d77f9237779
ld/x86-64: Add PR gold/26939 tests

GOTPCRELX relocations can be transformed only when addend == -4.  Add
tests for GOTPCRELX relocations with addend != -4.

PR gold/26939
* testsuite/ld-x86-64/pr26939-x32.d: New file.
* testsuite/ld-x86-64/pr26939.d: Likewise.
* testsuite/ld-x86-64/pr26939.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run PR gold/26939 tests.
ld/ChangeLog
ld/testsuite/ld-x86-64/pr26939-x32.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26939.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr26939.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp