Testsuite: Ensure pie is disabled on some tests
authorAlan Hayward <alan.hayward@arm.com>
Wed, 7 Aug 2019 16:23:49 +0000 (18:23 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 7 Aug 2019 16:23:49 +0000 (18:23 +0200)
commit3b752ac2e6e7ba7306528b3affaa3c364e30044b
tree5bee40f3d80f34169ee7a2495d395215ec241666
parentdc5626e83822493a2fb86dc029fc624952f66654
Testsuite: Ensure pie is disabled on some tests

[ Backport of master commit 968aa7ae38. ]

Recent versions of Ubuntu and Debian default GCC to enable pie.

In dump.exp, pie will causes addresses to be out of range for IHEX.

In break-interp.exp, pie is explicitly set for some tests and assumed
to be disabled for the remainder.

Ensure pie is disabled for these tests when required.

In addition, add a pie option to gdb_compile to match the nopie option
and simplify use.

gdb/testsuite/ChangeLog:

* README: Add pie options.
* gdb.base/break-interp.exp: Ensure pie is disabled.
* gdb.base/dump.exp: Likewise.
* lib/gdb.exp (gdb_compile): Add pie option.
gdb/testsuite/ChangeLog
gdb/testsuite/README
gdb/testsuite/gdb.base/break-interp.exp
gdb/testsuite/gdb.base/dump.exp
gdb/testsuite/lib/gdb.exp