[gdb/testsuite] Add nopie in a few test-cases
authorTom de Vries <tdevries@suse.de>
Sat, 17 Jun 2023 10:28:58 +0000 (12:28 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 17 Jun 2023 10:28:58 +0000 (12:28 +0200)
commit90cce6c0551b31b7e7bebec8ca9d6ac9267a8560
tree8916aab8b54c1abbe2e356a95de2757926d03d91
parent09ea7c9c49ec1a94c8107cd2c1dd303d158b218d
[gdb/testsuite] Add nopie in a few test-cases

When running test-case gdb.arch/i386-disp-step.exp with target board
unix/-m32/-fPIE/-pie we run into:
...
gdb compile failed, ld: i386-disp-step0.o: warning: relocation in read-only section `.text'
ld: warning: creating DT_TEXTREL in a PIE
...

Fix this by adding nopie in the compilation flags.

Likewise in a few other test-cases.

Tested on x86_64-linux.
gdb/testsuite/gdb.arch/i386-disp-step.exp
gdb/testsuite/gdb.dwarf2/implptr.exp
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
gdb/testsuite/gdb.dwarf2/typeddwarf.exp