Skip PLT for function pointer initialization
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / x86-64.exp
index 5409dff41e25e84651aef1741b56f14ecbd1aa9b..6320999b6c87ca520e8fdabc7dffcdb3e4216d35 100644 (file)
@@ -476,6 +476,30 @@ if { [isnative] && [which $CC] != 0 } {
            {{readelf {-Wr} pr17827.rd}} \
            "pr17827" \
        ] \
+       [list \
+           "Build pr18900.so" \
+           "-shared" \
+           "-fPIC" \
+           { pr18900a.c } \
+           "" \
+           "pr18900.so" \
+       ] \
+       [list \
+           "Build pr18900a" \
+           "tmpdir/pr18900.so" \
+           "" \
+           { pr18900b.c pr18900c.c } \
+           {{readelf {-Wrd} pr18900a.rd}} \
+           "pr18900a" \
+       ] \
+       [list \
+           "Build pr18900b" \
+           "tmpdir/pr18900.so" \
+           "" \
+           { pr18900b.c pr18900c.c } \
+           {{readelf {-Wrd} pr18900b.rd}} \
+           "pr18900b" \
+       ] \
     ]
 
     run_ld_link_exec_tests [] [list \
@@ -522,6 +546,14 @@ if { [isnative] && [which $CC] != 0 } {
            "pr17689now" \
            "pr17689.out" \
        ] \
+       [list \
+           "Run pr18900" \
+           "tmpdir/pr18900.so" \
+           "" \
+           { pr18900b.c pr18900c.c } \
+           "pr18900" \
+           "pr18900.out" \
+       ] \
     ]
 
     if { [istarget "x86_64-*-linux*"] \
This page took 0.03309 seconds and 4 git commands to generate.