summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/thumb-rel32.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/thumb-rel32.s')
-rw-r--r--ld/testsuite/ld-arm/thumb-rel32.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/thumb-rel32.s b/ld/testsuite/ld-arm/thumb-rel32.s
new file mode 100644
index 0000000..83eb0e5
--- /dev/null
+++ b/ld/testsuite/ld-arm/thumb-rel32.s
@@ -0,0 +1,18 @@
+ .text
+ .arch armv4t
+ .global _start
+ .type _start, %function
+ .thumb_func
+_start:
+ .word bar - .
+ .word _start - .
+ .byte 0
+ .4byte (_start - .) + 1
+ .byte 0, 0, 0
+ .section .after, "ax", %progbits
+ .global bar
+ .type bar, %function
+ .thumb_func
+bar:
+ .word 0
+ .ident "GCC: (GNU) 4.1.0 (CodeSourcery ARM)"