diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index a3122714314..8281dc43f1f 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -440,6 +440,14 @@ if { [isnative] && [which $CC] != 0 } { "pr17689.so" \ ] \ [list \ + "Build pr17689now.so with -z now" \ + "-shared -Wl,-z,now" \ + "-fPIC" \ + { pr17689a.c } \ + {{readelf {-Wr} pr17689now.rd}} \ + "pr17689now.so" \ + ] \ + [list \ "Build pr17689 with PIE without -fPIE" \ "tmpdir/pr17689.so -pie" \ "" \ @@ -448,6 +456,14 @@ if { [isnative] && [which $CC] != 0 } { "pr17689" \ ] \ [list \ + "Build pr17689 with PIE -z now without -fPIE" \ + "tmpdir/pr17689.so -pie -Wl,-z,now" \ + "" \ + { pr17689b.S } \ + {{readelf {-Wr} pr17689now.rd}} \ + "pr17689now" \ + ] \ + [list \ "Build pr17827 with PIE without -fPIE" \ "tmpdir/pr17689.so -pie" \ "" \ @@ -493,6 +509,14 @@ if { [isnative] && [which $CC] != 0 } { "pr17689" \ "pr17689.out" \ ] \ + [list \ + "Run pr17689 with PIE -z now without -fPIE" \ + "tmpdir/pr17689.so -pie -z now" \ + "" \ + { pr17689b.S } \ + "pr17689now" \ + "pr17689.out" \ + ] \ ] if { [istarget "x86_64-*-linux*"] \ |