[gdb/testsuite] Use pie instead of -fPIE -pie
authorTom de Vries <tdevries@suse.de>
Thu, 23 Sep 2021 20:42:10 +0000 (22:42 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 23 Sep 2021 20:42:10 +0000 (22:42 +0200)
commit6ef69a3ff3f5b2483893c6ce611977a1418de2f6
tree8cf2492a9ecfff89d09cf3234281d9d00e27f235
parent508109612f99513f523e2295d86133a71418c010
[gdb/testsuite] Use pie instead of -fPIE -pie

Replace {additional_flags=-fPIE ldflags=-pie} with {pie}.

This makes sure that the test-cases properly error out when using target board
unix/-fno-PIE/-no-pie.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/attach-pie-misread.exp
gdb/testsuite/gdb.base/attach-pie-noexec.exp
gdb/testsuite/gdb.base/jit-attach-pie.exp
gdb/testsuite/gdb.base/jit-elf.exp
gdb/testsuite/gdb.base/pie-execl.exp
gdb/testsuite/gdb.base/pie-fork.exp
gdb/testsuite/gdb.base/reread.exp
gdb/testsuite/gdb.threads/tls-nodebug-pie.exp