aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/attach-pie-misread.exp
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2012-01-13 18:39:31 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2012-01-13 18:39:31 +0000
commit9241a8bcf3da010eb1ec0ca6568e13243ce898ff (patch)
tree4f96537c0dcd4d8311d4345e1cc06552c77fe87d /gdb/testsuite/gdb.base/attach-pie-misread.exp
parent34dd18bca5b8991d5e107dc1669ba6710916ce1d (diff)
downloadgdb-9241a8bcf3da010eb1ec0ca6568e13243ce898ff.zip
gdb-9241a8bcf3da010eb1ec0ca6568e13243ce898ff.tar.gz
gdb-9241a8bcf3da010eb1ec0ca6568e13243ce898ff.tar.bz2
2012-01-13 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.base/attach-pie-misread.exp: Pass -pie only to the linker. * gdb.base/pie-execl.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/attach-pie-misread.exp')
-rw-r--r--gdb/testsuite/gdb.base/attach-pie-misread.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/attach-pie-misread.exp b/gdb/testsuite/gdb.base/attach-pie-misread.exp
index 7a68c33..65477a9 100644
--- a/gdb/testsuite/gdb.base/attach-pie-misread.exp
+++ b/gdb/testsuite/gdb.base/attach-pie-misread.exp
@@ -27,7 +27,7 @@ set genfile ${objdir}/${subdir}/${test}-gen.h
set executable ${test}
set binfile ${objdir}/${subdir}/${executable}
-if {[build_executable_own_libs ${test}.exp $executable $srcfile [list "additional_flags=-fPIE -pie"]] == ""} {
+if {[build_executable_own_libs ${test}.exp $executable $srcfile [list additional_flags=-fPIE ldflags=-pie]] == ""} {
return -1
}
@@ -97,7 +97,7 @@ if {$result == 0} {
fail $test
}
-set prelink_args [build_executable_own_libs ${test}.exp $executable $srcfile [list "additional_flags=-fPIE -pie -DGEN=\"$genfile\""]]
+set prelink_args [build_executable_own_libs ${test}.exp $executable $srcfile [list "additional_flags=-fPIE -DGEN=\"$genfile\"" "ldflags=-pie"]]
if {$prelink_args == ""} {
return -1
}