aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/unaligned-data.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/unaligned-data.s')
-rw-r--r--ld/testsuite/ld-mips-elf/unaligned-data.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/unaligned-data.s b/ld/testsuite/ld-mips-elf/unaligned-data.s
new file mode 100644
index 0000000..e865a13
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/unaligned-data.s
@@ -0,0 +1,15 @@
+ .macro sym n:req
+ .if \n
+ .globl bar\@
+ .type bar\@, @object
+bar\@ :
+ .byte 0
+ .size bar\@, . - bar\@
+ sym \n - 1
+ .endif
+ .endm
+
+ .data
+ .align 4
+ .space 32
+ sym 16