Adjust pr14156 test for m68hc1*

Message ID 20190321114823.GA20126@bubble.grove.modra.org
State New
Headers show
Series
  • Adjust pr14156 test for m68hc1*
Related show

Commit Message

Alan Modra March 21, 2019, 11:48 a.m.
The test section alignment is unnecessarily high, overflowing the
m68hc11 page used by .init code.

	* testsuite/ld-elf/fini2.s: Reduce alignment.
	* testsuite/ld-elf/fini3.s: Likewise.
	* testsuite/ld-elf/finin.s: Likewise.
	* testsuite/ld-elf/init2.s: Likewise.
	* testsuite/ld-elf/init3.s: Likewise.
	* testsuite/ld-elf/initn.s: Likewise.
	* testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
	* testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/ld/testsuite/ld-elf/fini2.s b/ld/testsuite/ld-elf/fini2.s
index 9d8753065a..8fabadf51b 100644
--- a/ld/testsuite/ld-elf/fini2.s
+++ b/ld/testsuite/ld-elf/fini2.s
@@ -1,5 +1,5 @@ 
 	.section .fini, "a"
-	.p2align 6
+	.p2align 4
 	.type	foo2,%function
 foo2:
 	.dc.a	0x0
diff --git a/ld/testsuite/ld-elf/fini3.s b/ld/testsuite/ld-elf/fini3.s
index eb8535a04e..59cf534bf4 100644
--- a/ld/testsuite/ld-elf/fini3.s
+++ b/ld/testsuite/ld-elf/fini3.s
@@ -1,5 +1,5 @@ 
 	.section .fini, "a"
-	.p2align 4
+	.p2align 3
 	.type	foo3,%function
 foo3:
 	.dc.a	0x0
diff --git a/ld/testsuite/ld-elf/finin.s b/ld/testsuite/ld-elf/finin.s
index c23ff7937c..48bcf08ee5 100644
--- a/ld/testsuite/ld-elf/finin.s
+++ b/ld/testsuite/ld-elf/finin.s
@@ -1,5 +1,5 @@ 
 	.section .fini, "a"
-	.p2align 8
+	.p2align 5
 	.type	last,%function
 last:
 	.dc.a	0x0
diff --git a/ld/testsuite/ld-elf/init2.s b/ld/testsuite/ld-elf/init2.s
index 0185148f9f..f0461fc84f 100644
--- a/ld/testsuite/ld-elf/init2.s
+++ b/ld/testsuite/ld-elf/init2.s
@@ -1,5 +1,5 @@ 
 	.section .init, "a"
-	.p2align 6
+	.p2align 4
 	.type	foo2,%function
 foo2:
 	.dc.a	0x0
diff --git a/ld/testsuite/ld-elf/init3.s b/ld/testsuite/ld-elf/init3.s
index 71696c0501..868da24ee7 100644
--- a/ld/testsuite/ld-elf/init3.s
+++ b/ld/testsuite/ld-elf/init3.s
@@ -1,5 +1,5 @@ 
 	.section .init, "a"
-	.p2align 4
+	.p2align 3
 	.type	foo3,%function
 foo3:
 	.dc.a	0x0
diff --git a/ld/testsuite/ld-elf/initn.s b/ld/testsuite/ld-elf/initn.s
index 3d0990e07e..8e3e40a0a1 100644
--- a/ld/testsuite/ld-elf/initn.s
+++ b/ld/testsuite/ld-elf/initn.s
@@ -1,5 +1,5 @@ 
 	.section .init, "a"
-	.p2align 8
+	.p2align 5
 	.type	last,%function
 last:
 	.dc.a	0x0
diff --git a/ld/testsuite/ld-elf/pr14156a.d b/ld/testsuite/ld-elf/pr14156a.d
index ffc6bfc552..cf38ee1016 100644
--- a/ld/testsuite/ld-elf/pr14156a.d
+++ b/ld/testsuite/ld-elf/pr14156a.d
@@ -5,7 +5,6 @@ 
 #source: initn.s
 #ld: --sort-section=alignment
 #nm: -n
-#xfail: m68hc1*-* xgate-*
 
 #...
 [0-9a-f]+ T foo
diff --git a/ld/testsuite/ld-elf/pr14156b.d b/ld/testsuite/ld-elf/pr14156b.d
index 1cd16c021b..f965f74e6e 100644
--- a/ld/testsuite/ld-elf/pr14156b.d
+++ b/ld/testsuite/ld-elf/pr14156b.d
@@ -5,7 +5,6 @@ 
 #source: finin.s
 #ld: --sort-section=alignment
 #nm: -n
-#xfail: xgate-*-*
 
 #...
 [0-9a-f]+ T foo