Use __asm__ rather than asm in gold testsuite
[deliverable/binutils-gdb.git] / gold / testsuite / arm_unaligned_reloc.s
index 7677bff3733d24f6c1e9527740f938a39e40e3f0..83bd03b44b31fc77b5ae9c1f59151be5620c89f9 100644 (file)
@@ -15,7 +15,7 @@ x:
        .word   1
 
        .section        .data.1,"aw",%progbits
-       .align  2
+       .align  12
 
 # This causes following relocations to be unaligned.
        .global padding
@@ -28,17 +28,20 @@ padding:
        .type   abs32, %object
        .size   abs32, 4
 abs32:
-       .word   x
+       # We use x + 1 instead so that addend is non-zero
+       # The disassembler sometimes skips repeating
+       # zeros and prints "..." instead.
+       .word   x + 1
 
        .global rel32
        .type   rel32, %object
        .size   rel32, 4
 rel32:
-       .word   x - .
+       .word   x + 1 - .
 
        .global abs16
        .type   abs16, %object
        .size   abs16, 2
 abs16:
-       .short  x
+       .short  x + 1
        .short  0
This page took 0.023374 seconds and 4 git commands to generate.