diff options
Diffstat (limited to 'ld/testsuite/ld-scripts/crossref.exp')
-rw-r--r-- | ld/testsuite/ld-scripts/crossref.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp index 4318e15..8ac0264 100644 --- a/ld/testsuite/ld-scripts/crossref.exp +++ b/ld/testsuite/ld-scripts/crossref.exp @@ -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. |