aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc.exp')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc.exp28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index d2382f8..03789a9 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -418,6 +418,17 @@ if { ![check_ifunc_available] } {
return
}
+run_cc_link_tests [list \
+ [list \
+ "Build ifunc-lib.so" \
+ "-shared" \
+ "-fPIC" \
+ { ifunc-lib.c } \
+ {} \
+ "libifunc-lib.so" \
+ ] \
+]
+
run_ld_link_exec_tests [] [list \
[list \
"Run pr16467" \
@@ -428,4 +439,21 @@ run_ld_link_exec_tests [] [list \
"pr16467.out" \
"" \
] \
+ [list \
+ "Run ifunc-main" \
+ "tmpdir/libifunc-lib.so" \
+ "" \
+ { ifunc-main.c } \
+ "ifunc-main" \
+ "ifunc-main.out" \
+ ] \
+ [list \
+ "Run ifunc-main with -fpic" \
+ "tmpdir/libifunc-lib.so" \
+ "" \
+ { ifunc-main.c } \
+ "ifunc-main" \
+ "ifunc-main.out" \
+ "-fpic" \
+ ] \
]