diff options
author | Jan Vrany <jan.vrany@fit.cvut.cz> | 2018-12-13 15:20:49 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-12-21 15:53:08 -0500 |
commit | 6e8b1ab2fd4c692146eb14295866920f83dc5403 (patch) | |
tree | b945355f5210b1f85519fb2b94d13aa6a8760f7d /gdb/testsuite/README | |
parent | 6d78332e7748754d4a77a31e692fb8760c8c12ff (diff) | |
download | gdb-6e8b1ab2fd4c692146eb14295866920f83dc5403.zip gdb-6e8b1ab2fd4c692146eb14295866920f83dc5403.tar.gz gdb-6e8b1ab2fd4c692146eb14295866920f83dc5403.tar.bz2 |
Fix various tests to use -no-pie linker flag when needed
Various tests use test code written in i386 / x86_64 assembly that cannot
be used to create PIE executables. Therefore compilation of test programs
failed on systems where the compiler default is to create PIE executable.
The solution is to use -no-pie linker flag, however, such flag may not
(is not) supported by all compilers GDB needs to support (e.g. gcc 4.8).
To handle this, introduce a new flag to gdb_compile - nopie - which
inserts -no-pie linker flag where supported and is no-op where it is
not. By default, -no-pie flag is inserted since most modern compiler do
support it.
Diffstat (limited to 'gdb/testsuite/README')
-rw-r--r-- | gdb/testsuite/README | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/README b/gdb/testsuite/README index 723d8ba..b5e75b9 100644 --- a/gdb/testsuite/README +++ b/gdb/testsuite/README @@ -482,6 +482,11 @@ gdb,no_thread_names The target doesn't support thread names. +gdb,nopie_flag + + The flag required to force the compiler to produce non-position-independent + executables. + Testsuite Organization ********************** |