ld pr22471 test fails
authorAlan Modra <amodra@gmail.com>
Wed, 6 Jan 2021 22:07:38 +0000 (08:37 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Jan 2021 22:26:28 +0000 (08:56 +1030)
* testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
complain about relocs in read-only sections.  Tidy ASFLAGS append.

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

index 41fdda1a4cd479c11b926f023597939b7b5b7d4e..98f9cded84ab8e77e4a35ee998a67923dd6be986 100644 (file)
@@ -1,3 +1,8 @@
+2021-01-07  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
+       complain about relocs in read-only sections.  Tidy ASFLAGS append.
+
 2021-01-06  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
index 33c53f2d08e158c30fc441d814cfc31b29f51629..fcf237ac052a7b42131eb571ec00e3a07370b609 100644 (file)
@@ -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}}
This page took 0.02573 seconds and 4 git commands to generate.