x86-64: Use PLT address for PC-relative reloc
[deliverable/binutils-gdb.git] / ld / testsuite / ld-i386 / i386.exp
index e4ec07d0e97712c68bfa837ae38350c413f42aba..ba2cce87ecec29deb7de830dc1dcc36fc358f9a0 100644 (file)
@@ -1273,6 +1273,14 @@ if { [isnative]
            {} \
            "pr21997-1.so" \
        ] \
+       [list \
+           "Build pr22842.so" \
+           "-shared" \
+           "-fPIC" \
+           { pr22842a.c } \
+           {} \
+           "pr22842.so" \
+       ] \
     ]
 
     run_ld_link_exec_tests [list \
@@ -1371,6 +1379,14 @@ if { [isnative]
            "pr21997-1-pie-2" \
            "pass.out" \
        ] \
+       [list \
+           "Build pr22842" \
+           "-pie -Wl,--no-as-needed tmpdir/pr22842.so" \
+           "" \
+           { pr22842b.S } \
+           "pr22842" \
+           "pass.out" \
+       ] \
     ]
 
     if { [at_least_gcc_version 5 0] } {
This page took 0.023584 seconds and 4 git commands to generate.