Run plt-main test with -pie
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 21 Nov 2014 15:57:38 +0000 (07:57 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 21 Nov 2014 15:57:38 +0000 (07:57 -0800)
* ld-x86-64/x86-64.exp: Run plt-main test with -pie.

ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/x86-64.exp

index 0068a85a464b256a318b41c99b77535e596aa301..9a264b6ccedb7df382313928982eda9f3f43eb4b 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-x86-64/x86-64.exp: Run plt-main test with -pie.
+
 2014-11-21  Terry Guo  <terry.guo@arm.com>
 
        * ld-arm/tls-longplt-lib.s: Require ARMv6T2.
index ecc1194b1f4d254f3bcc5bf1ed13a601c47c2caf..ab1bfd1195b223424f0da15e997bda37ae90e6b0 100644 (file)
@@ -386,6 +386,16 @@ if { [isnative] && [which $CC] != 0 } {
            "plt-main" \
            "plt-main.out" \
        ] \
+       [list \
+           "Run plt-main with PIE" \
+           "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
+            tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
+           "" \
+           { plt-main5.c } \
+           "plt-main-pie" \
+           "plt-main.out" \
+           "-fPIC" \
+       ] \
     ]
 }