aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-11-21 07:57:38 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-11-21 07:57:38 -0800
commitce641d0b6b9fc9d873cf204c5ecd25a451fef3d2 (patch)
treebc3b0bcd475976e13d8721986d889181fa73bdd8
parent278289d5d70324b580cb5faf663a8398e4710816 (diff)
downloadgdb-ce641d0b6b9fc9d873cf204c5ecd25a451fef3d2.zip
gdb-ce641d0b6b9fc9d873cf204c5ecd25a451fef3d2.tar.gz
gdb-ce641d0b6b9fc9d873cf204c5ecd25a451fef3d2.tar.bz2
Run plt-main test with -pie
* ld-x86-64/x86-64.exp: Run plt-main test with -pie.
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp10
2 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0068a85..9a264b6 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index ecc1194..ab1bfd1 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -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" \
+ ] \
]
}