ld: Pass $LFLAGS to PR ld/21703 shared test
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jun 2020 21:48:13 +0000 (14:48 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jun 2020 21:50:01 +0000 (14:50 -0700)
$LFLAGS is needed for -shared test.  This fixes

FAIL: PR ld/21703 shared

for tic6x-*-elf.

* testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
shared test.

ld/ChangeLog
ld/testsuite/ld-elf/shared.exp

index 995d527d75cca71c5a909b4bb1c5db0efb7f65bd..59de955076b3cb2e5493a81a1d7bd54c3860c35f 100644 (file)
@@ -1,3 +1,8 @@
+2020-06-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
+       shared test.
+
 2020-06-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
index 20ed2c217b3ae856ca3a73754ec592666378f824..effa3ab376f98bddf9e4e538ff90d1f4956a7a16 100644 (file)
@@ -390,7 +390,7 @@ run_ld_link_tests [list \
 # Nor will hppa64 with dot-symbols.
 run_ld_link_tests [list \
     [list "PR ld/21703 shared" \
-       "-shared --allow-multiple-definition --version-script pr21703.ver\
+       "$LFLAGS -shared --allow-multiple-definition --version-script pr21703.ver\
         tmpdir/pr21703-3.o tmpdir/pr21703-4.o" "" "$AFLAGS_PIC" \
        {pr21703-3.s pr21703-4.s} {{readelf {--dyn-syms} pr21703-shared.sd}} \
        "pr21703.so" ] \