summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/mpx.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-11-20 12:35:10 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-11-20 12:35:10 -0800
commit9a2310125bcdec881dd1b21004ec0ea6558cfd4f (patch)
tree31376dc464ddf6371e0702fa2f4459e187e91a38 /ld/testsuite/ld-x86-64/mpx.exp
parent069d6a0fbf09618055aeebc8587881a0a8f8dced (diff)
downloadbinutils-gdb-9a2310125bcdec881dd1b21004ec0ea6558cfd4f.tar.gz
Add mpx1static, mpx2 and mpx2static tests
* ld-x86-64/mpx.exp (build_tests): Add libmpx2a.a, libmpx2b.a and libmpx2c.a. (run_tests): Add mpx1static, mpx2 and mpx2static. * ld-x86-64/mpx2.out: Likewise. * ld-x86-64/mpx2a.c: Likewise. * ld-x86-64/mpx2a.rd: Likewise. * ld-x86-64/mpx2b.c: Likewise. * ld-x86-64/mpx2c.c: Likewise. * ld-x86-64/mpx2c.rd: Likewise.
Diffstat (limited to 'ld/testsuite/ld-x86-64/mpx.exp')
-rw-r--r--ld/testsuite/ld-x86-64/mpx.exp18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/mpx.exp b/ld/testsuite/ld-x86-64/mpx.exp
index a2f5996ffa9..192c774c78d 100644
--- a/ld/testsuite/ld-x86-64/mpx.exp
+++ b/ld/testsuite/ld-x86-64/mpx.exp
@@ -47,6 +47,15 @@ set build_tests {
{"Build libmpx1c.a"
"" "-Wa,-madd-bnd-prefix"
{mpx1c.c} {{readelf {-r --wide} mpx1c.rd}} "libmpx1c.a"}
+ {"Build libmpx2a.a"
+ "" "-Wa,-madd-bnd-prefix -fPIE"
+ {mpx2a.c} {{readelf {-r --wide} mpx2a.rd}} "libmpx2a.a"}
+ {"Build libmpx2b.a"
+ "" "-fPIE"
+ {mpx2b.c} {} "libmpx2b.a"}
+ {"Build libmpx2c.a"
+ "" "-Wa,-madd-bnd-prefix -fPIE"
+ {mpx2c.c} {{readelf {-r --wide} mpx2c.rd}} "libmpx2c.a"}
}
run_cc_link_tests $build_tests
@@ -55,6 +64,15 @@ set run_tests {
{"Run mpx1"
"tmpdir/mpx1a.o tmpdir/mpx1b.o tmpdir/mpx1c.o" ""
{dummy.s} "mpx1" "mpx1.out"}
+ {"Run mpx1 with -static"
+ "tmpdir/mpx1a.o tmpdir/mpx1b.o tmpdir/mpx1c.o -static" ""
+ {dummy.s} "mpx1static" "mpx1.out"}
+ {"Run mpx2"
+ "tmpdir/mpx2a.o tmpdir/mpx2b.o tmpdir/mpx2c.o -pie" ""
+ {dummy.s} "mpx2" "mpx2.out"}
+ {"Run mpx2 with -static"
+ "tmpdir/mpx2a.o tmpdir/mpx2b.o tmpdir/mpx2c.o -static" ""
+ {dummy.s} "mpx2static" "mpx2.out"}
}
run_ld_link_exec_tests [] $run_tests