testsuite: extend nopie handling to add -fno-pie to compiler flags
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 21 Dec 2020 07:34:25 +0000 (08:34 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 3 Mar 2021 08:07:49 +0000 (09:07 +0100)
commitb93a3ed0a8561cb8f9541eca975e8c76f728d86c
tree79c01f555f1aaa11ad3c86e574d092d05bcab09a
parentfd5c076a06d88dc53e56a17d43ea4ad5e27515a0
testsuite: extend nopie handling to add -fno-pie to compiler flags

Some older GCC, e.g. 7.5.0 on Ubuntu 18.04 need -fno-pie to be passed to
the compiler in addition to -no-pie to be passed to the linker for non-pie
code generation.

The gdb,nopie_flag is already documented as getting passed to the
compiler, not the linker.  Use that for the new -fno-pie compiler flag and
add a new gdb,nopie_ldflag for the existing -no-pie linker flag.

CAUTION: this might break existing board files that specify
         gdb,nopie_flag.  Affected board files need to rename
         gdb,nopie_flag into gdb,nopie_ldflag.
gdb/testsuite/ChangeLog
gdb/testsuite/README
gdb/testsuite/lib/gdb.exp
This page took 0.026026 seconds and 4 git commands to generate.