* gdb.base/attach-pie-misread.exp: Pass -pie only to the linker.
* gdb.base/pie-execl.exp: Likewise.
+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.
+
2012-01-12 Keith Seitz <keiths@redhat.com>
PR mi/10586
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
}
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
}
# Use conditional compilation according to `BIN' as GDB remembers the source
# file name of the breakpoint.
-set opts [list debug {additional_flags=-fPIE -pie}]
+set opts [list debug additional_flags=-fPIE ldflags=-pie]
if {[build_executable ${testfile}.exp $executable1 $srcfile [concat $opts {additional_flags=-DBIN=1}]] == ""
|| [build_executable ${testfile}.exp $executable2 $srcfile [concat $opts {additional_flags=-DBIN=2}]] == ""} {
return -1