Re-enable rgn-at11 test for MIPS targets with adjusted section alignment.
authorNick Clifton <nickc@redhat.com>
Mon, 18 Jan 2016 13:00:33 +0000 (13:00 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 18 Jan 2016 13:00:33 +0000 (13:00 +0000)
* testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
but with 16 byte section alignment.
* testsuite/ld-scripts/rgn-at11.d: Use new source file.  Reenable
test for MIPS targets.

ld/ChangeLog
ld/testsuite/ld-scripts/rgn-at11.d
ld/testsuite/ld-scripts/rgn-at11.s [new file with mode: 0644]

index b99b17080e03293a60fa77671a959dc726d103c3..b5efb353b5ca418bc16480c0d07afdc2735377e8 100644 (file)
@@ -7,6 +7,11 @@
        * testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
        is not configured to support plugins.
 
+       * testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
+       but with 16 byte section alignment.
+       * testsuite/ld-scripts/rgn-at11.d: Use new source file.  Reenable
+       test for MIPS targets.
+
 2016-01-17  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index e37cbd7fc3c9242c2c24e99196785e9e5234b168..297ae464ea03bef17aa66107f0d97edb98075ac9 100644 (file)
@@ -1,14 +1,12 @@
-#source: rgn-at10.s
+#source: rgn-at11.s
 #ld: -T rgn-at11.t
 #objdump: -h --wide
-#xfail: rx-*-* mips*-*-*
+#xfail: rx-*-*
 # Test that lma is not adjusted in case the section start vma is aligned and
 # lma_region != region if not requested by script.
 # Fails for RX because it ignores the LMA (for compatibility with Renesas tools)
-# Fails for MIPS targets because the  assembler pads all sections to a 16 byte
-# boundary.
 
 #...
 .* 0+10000 +0+20000 .*
-.* 0+10100 +0+20004 .*
-.* 0+10100 +0+20004 .*
+.* 0+10100 +0+20010 .*
+.* 0+10100 +0+20010 .*
diff --git a/ld/testsuite/ld-scripts/rgn-at11.s b/ld/testsuite/ld-scripts/rgn-at11.s
new file mode 100644 (file)
index 0000000..2ec63c8
--- /dev/null
@@ -0,0 +1,10 @@
+ .text
+ .zero 16
+
+ .section .tbss,"awT",%nobits
+ .p2align 8
+ .zero 16
+
+ .data
+ .p2align 4
+ .long 0