Pass $NOPIE_CFLAGS to NOCROSSREFS tests
PR ld/21090 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS to CC.
This commit is contained in:
parent
127d08c03f
commit
e5c89b096d
|
@ -1,3 +1,9 @@
|
|||
2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/21090
|
||||
* testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
|
||||
to CC.
|
||||
|
||||
2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/21090
|
||||
|
|
|
@ -42,9 +42,10 @@ global CFLAGS
|
|||
set old_CFLAGS "$CFLAGS"
|
||||
|
||||
# Pass -fplt to CC since -fno-plt doesn't work with NOCROSSREFS tests.
|
||||
global PLT_CFLAGS
|
||||
# Also add $NOPIE_CFLAGS since PIE doesn't work NOCROSSREFS tests.
|
||||
global PLT_CFLAGS NOPIE_CFLAGS
|
||||
set old_CC "$CC"
|
||||
set CC "$CC $PLT_CFLAGS"
|
||||
set CC "$CC $PLT_CFLAGS $NOPIE_CFLAGS"
|
||||
|
||||
# Xtensa targets currently default to putting literal values in a separate
|
||||
# section and that requires linker script support, so put literals in text.
|
||||
|
|
Loading…
Reference in New Issue