aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-10-08 11:20:31 +0200
committerTom de Vries <tdevries@suse.de>2021-10-08 11:20:31 +0200
commitb80e6295f6e456a1f94ac8b27493ef9f6290bde4 (patch)
tree4b8bf0187cf9c5c3c253014aa09c4c48908ede5b /gdb/testsuite/gdb.dwarf2
parentfc6e66cd181c61b110cf1b769bbe9a86e10e5fdb (diff)
downloadgdb-b80e6295f6e456a1f94ac8b27493ef9f6290bde4.zip
gdb-b80e6295f6e456a1f94ac8b27493ef9f6290bde4.tar.gz
gdb-b80e6295f6e456a1f94ac8b27493ef9f6290bde4.tar.bz2
[gdb/testsuite] Add nopie in two test-cases
When running test-case gdb.dwarf2/dw2-restrict.exp on openSUSE Leap 15.2 with gcc-PIE installed (switching compiler default to -fPIE/-pie), I get: ... gdb compile failed, ld: outputs/gdb.dwarf2/dw2-restrict/dw2-restrict0.o: \ warning: relocation in read-only section `.text' ld: warning: creating DT_TEXTREL in a PIE UNTESTED: gdb.dwarf2/dw2-restrict.exp: failed to prepare ... This is due to using a hardcoded .S file that was generated with -fno-PIE. Fix this by adding the missing nopie. Likewise in gdb.arch/amd64-tailcall-noret.exp. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-restrict.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp b/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
index 6f98b6c..2a46510 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
@@ -27,7 +27,8 @@ if {![istarget x86_64-*] || ![is_lp64_target]} {
standard_testfile .S
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
+ {nodebug nopie}]} {
return -1
}