microblaze-linux XPASS ld-elf/var1

Message ID 20200630064954.GG30281@bubble.grove.modra.org
State New
Headers show
Series
  • microblaze-linux XPASS ld-elf/var1
Related show

Commit Message

Alan Modra via Binutils June 30, 2020, 6:49 a.m.
microblaze-linux uses the standard ELF script, microblaze-elf its own
script lacking an input section pattern needed to make this test pass.
Add the missing pattern for .data, in line with most other sections
that do have .* patterns.

	* scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
	* testsuite/ld-elf/var1.d: Don't xfail microblaze.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc
index 3ac2ac09ef..65e36cb908 100644
--- a/ld/scripttempl/elfmicroblaze.sc
+++ b/ld/scripttempl/elfmicroblaze.sc
@@ -136,6 +136,7 @@  SECTIONS
   ${RELOCATING+ _fdata = .;}
   .data : {
     *(.data)
+    ${RELOCATING+*(.data.*)}
     ${RELOCATING+*(.gnu.linkonce.d.*)}
     ${CONSTRUCTING+CONSTRUCTORS;} /* Is this needed? */
   }
diff --git a/ld/testsuite/ld-elf/var1.d b/ld/testsuite/ld-elf/var1.d
index 36a1f63493..f7de7fc0ed 100644
--- a/ld/testsuite/ld-elf/var1.d
+++ b/ld/testsuite/ld-elf/var1.d
@@ -1,6 +1,6 @@ 
 #ld:  $srcdir/$subdir/var1.t --sort-section name
 #nm: -n
-#xfail: d30v-*-* dlx-*-* ft32-*-* microblaze-*-*
+#xfail: d30v-*-* dlx-*-* ft32-*-*
 
 #...
 [0-9a-f]* D var1