ld: Pass $LFLAGS to PR ld/21703 shared test

Message ID 20200607214944.773900-1-hjl.tools@gmail.com
State New
Headers show
Series
  • ld: Pass $LFLAGS to PR ld/21703 shared test
Related show

Commit Message

David Faust via Binutils June 7, 2020, 9:49 p.m.
$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                   | 5 +++++
 ld/testsuite/ld-elf/shared.exp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.26.2

Patch

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 995d527d75..59de955076 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 20ed2c217b..effa3ab376 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -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" ] \