Adjust quoted-sym-names test

Message ID YdVmndwrAwe4tCQj@squeak.grove.modra.org
State New
Headers show
Series
  • Adjust quoted-sym-names test
Related show

Commit Message

H.J. Lu via Binutils Jan. 5, 2022, 9:36 a.m.
Some targets restrict symbol addresses in .text to instruction
boundaries.

	* testsuite/gas/all/quoted-sym-names.s: Define syms in .data.
	* testsuite/gas/all/quoted-sym-names.d: Adjust to suit.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/gas/testsuite/gas/all/quoted-sym-names.d b/gas/testsuite/gas/all/quoted-sym-names.d
index 5f0d3f8c469..17e4830315b 100644
--- a/gas/testsuite/gas/all/quoted-sym-names.d
+++ b/gas/testsuite/gas/all/quoted-sym-names.d
@@ -6,8 +6,8 @@ 
 #notarget: z80-*-*
 
 #...
-0+00 T test-a
-0+01 T back\\slash
-0+02 T back"slash
-0+03 T backslash\\
-0+04 T backslash"
+0+00 D test-a
+0+01 D back\\slash
+0+02 D back"slash
+0+03 D backslash\\
+0+04 D backslash"
diff --git a/gas/testsuite/gas/all/quoted-sym-names.s b/gas/testsuite/gas/all/quoted-sym-names.s
index 677f5dd3ce4..0c1e9eb7cdf 100644
--- a/gas/testsuite/gas/all/quoted-sym-names.s
+++ b/gas/testsuite/gas/all/quoted-sym-names.s
@@ -1,4 +1,4 @@ 
-	.text
+	.data
 	.globl	"test-a"
 "test-a":
 	.byte 0