diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-11-24 11:32:14 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-11-24 11:32:26 -0800 |
commit | d0089f12f6f40e7b69fd432ef4915908407379f2 (patch) | |
tree | 9badcdd8208ee829a6bbe48628bec3a1197a2183 /ld/testsuite/ld-x86-64/x86-64.exp | |
parent | 1c64f6cbcfb2acef1f80b6c03d989d77f9237779 (diff) | |
download | gdb-d0089f12f6f40e7b69fd432ef4915908407379f2.zip gdb-d0089f12f6f40e7b69fd432ef4915908407379f2.tar.gz gdb-d0089f12f6f40e7b69fd432ef4915908407379f2.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index b99e6f1..99c8a33 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -659,6 +659,8 @@ run_dump_test "pr20253-5b" run_dump_test "tlsdesc2" run_dump_test "pr22048" run_dump_test "pr22929" +run_dump_test "pr26939" +run_dump_test "pr26939-x32" proc undefined_weak {cflags ldflags} { set testname "Undefined weak symbol" |