public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ld pr22471 test fails
@ 2021-01-06 22:33 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-01-06 22:33 UTC (permalink / raw)
  To: binutils

	* testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
	complain about relocs in read-only sections.  Tidy ASFLAGS append.

diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 33c53f2d08..fcf237ac05 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -71,7 +71,7 @@ if { [istarget "mips*vr4100*-*-elf*"] \
 }
 
 if [is_underscore_target] {
-    set ASFLAGS "$ASFLAGS --defsym UNDERSCORE=1"
+    append ASFLAGS " --defsym UNDERSCORE=1"
 }
 
 run_ld_link_tests [list \
@@ -93,15 +93,6 @@ run_ld_link_tests [list \
 	{} \
 	"pr22471b.so" \
     ] \
-    [list \
-	"Build pr22471" \
-	"$LFLAGS -rpath-link ." \
-	"tmpdir/pr22471b.so" \
-	"" \
-	{pr22471b.s} \
-	{} \
-	"pr22471" \
-    ] \
     [list \
 	"Build pr22649-1.so" \
 	"$LFLAGS -shared" \
@@ -113,6 +104,18 @@ run_ld_link_tests [list \
     ] \
 ]
 
+run_ld_link_tests [list \
+    [list \
+	"Build pr22471" \
+	"$LFLAGS -rpath-link . -rpath-link tmpdir" \
+	"tmpdir/pr22471b.so" \
+	"" \
+	{pr22471b.s} \
+	{} \
+	"pr22471" \
+    ] \
+] bfin-*-* frv-*-* lm32-*-*
+
 if { [check_gc_sections_available] } {
     if [istarget mips*-*-*] {
 	set actions {{ld pr22649-2ab-mips.msg}}

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-06 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 22:33 ld pr22471 test fails Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).