x86-64: Generate branch with PLT32 relocation
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / x86-64.exp
index af3afcc2c735a4d5e393978c84c95b0e7bde7d79..a649de87cd10e1f9223e38e0137ea57050549e49 100644 (file)
@@ -1152,6 +1152,44 @@ if { [isnative] && [which $CC] != 0 } {
             {readelf -lW pr22393-3b.rd}} \
            "pr22393-3-static" \
        ] \
+       [list \
+           "Build pr22791-1.so" \
+           "-shared" \
+           "-fPIC" \
+           { pr22791-1a.c } \
+           {} \
+           "pr22791-1.so" \
+       ] \
+       [list \
+           "Build pr22791-1" \
+           "-pie -Wl,--no-as-needed tmpdir/pr22791-1.so" \
+           "$NOPIE_CFLAGS" \
+           { pr22791-1b.s } \
+           {{error_output "pr22791-1.err"}} \
+           "pr22791-1" \
+       ] \
+       [list \
+           "Build pr22791-2a.o" \
+           "" \
+           "$NOPIE_CFLAGS" \
+           { pr22791-2a.s } \
+       ] \
+       [list \
+           "Build pr22791-2.so" \
+           "-shared tmpdir/pr22791-2a.o" \
+           "-fPIC" \
+           { pr22791-2b.c } \
+           {{readelf -drW pr22791-2.rd}} \
+           "pr22791-2.so" \
+       ] \
+       [list \
+           "Build pr22791-2" \
+           "-pie -Wl,--no-as-needed tmpdir/pr22791-2.so" \
+           "$NOPIE_CFLAGS" \
+           { pr22791-2c.s } \
+           {{readelf -drW pr22791-2.rd}} \
+           "pr22791-2" \
+       ] \
     ]
 
     if  {[istarget "x86_64-*-linux*-gnux32"]} {
@@ -1477,6 +1515,15 @@ if { [isnative] && [which $CC] != 0 } {
            "pr22393-3-static" \
            "pass.out" \
        ] \
+       [list \
+           "Run pr22791-2" \
+           "-pie -Wl,--no-as-needed tmpdir/pr22791-2.so" \
+           "" \
+           { pr22791-2c.s } \
+           "pr22791-2" \
+           "pass.out" \
+           "$NOPIE_CFLAGS" \
+       ] \
     ]
 
     # Run-time tests which require working ifunc attribute support.
This page took 0.02708 seconds and 4 git commands to generate.