Set NOPIE_CFLAGS and NOPIE_LDFLAGS
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 27 Jul 2015 23:16:17 +0000 (16:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 27 Jul 2015 23:20:49 +0000 (16:20 -0700)
commit6f8ea6c424a3ceda065c39903065cfb251add37d
tree1473230a3f4cceeddbf6dc3643ee72eb286e932f
parent13e1dec8960122ec0329f74e5915503e14db5ea2
Set NOPIE_CFLAGS and NOPIE_LDFLAGS

GCC 6 can be configured to generate PIE by default.  But some linker
size tests expect non-PIE.  This patch defines NOPIE_CFLAGS to
"-fno-PIE" and NOPIE_LDFLAGS to "-no-pie" if target compiler supports
them.  Add $NOPIE_CFLAGS and $NOPIE_LDFLAGS to linker size tests if
needed.

* config/default.exp (NOPIE_CFLAGS): New.
(NOPIE_LDFLAGS): Likewise.
* ld-size/size.exp (run_cc_link_tests): Add $NOPIE_CFLAGS and
$NOPIE_LDFLAGS if needed.
(run_ld_link_exec_tests): Add $NOPIE_CFLAGS if needed.
ld/testsuite/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-size/size.exp
This page took 0.04086 seconds and 4 git commands to generate.