diff options
Diffstat (limited to 'ld/testsuite/ld-i386/i386.exp')
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index bbc6005..a26cffd 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -406,6 +406,14 @@ if { [isnative] "pr17689.so" \ ] \ [list \ + "Build pr17689.so with -z now" \ + "-shared -Wl,-z,now" \ + "-fPIC" \ + { pr17689a.c } \ + {{readelf {-Wr} pr17689now.rd}} \ + "pr17689now.so" \ + ] \ + [list \ "Build pr17689ver.so" \ "-shared -Wl,--version-script,pr17689a.t" \ "-fPIC" \ @@ -430,6 +438,14 @@ if { [isnative] "pr17689" \ ] \ [list \ + "Build pr17689 with PIE, -z now and GOTOFF" \ + "tmpdir/pr17689b.o tmpdir/pr17689.so -pie -Wl,-z,now" \ + "" \ + { dummy.c } \ + {{readelf {-Wr} pr17689now.rd}} \ + "pr17689now" \ + ] \ + [list \ "Build pr17689ver with PIE and GOTOFF" \ "tmpdir/pr17689b.o tmpdir/pr17689ver.so -pie" \ "" \ @@ -484,6 +500,14 @@ if { [isnative] "pr17689.out" \ ] \ [list \ + "Run pr17689 with PIE, -z now and GOTOFF" \ + "tmpdir/pr17689b.o tmpdir/pr17689.so -pie -z now" \ + "" \ + { dummy.c } \ + "pr17689now" \ + "pr17689.out" \ + ] \ + [list \ "Run pr17689ver with PIE and GOTOFF" \ "tmpdir/pr17689b.o tmpdir/pr17689ver.so -pie" \ "" \ |