summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-tic6x/got-reloc-global.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-tic6x/got-reloc-global.s')
-rw-r--r--ld/testsuite/ld-tic6x/got-reloc-global.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-tic6x/got-reloc-global.s b/ld/testsuite/ld-tic6x/got-reloc-global.s
new file mode 100644
index 0000000..054c297
--- /dev/null
+++ b/ld/testsuite/ld-tic6x/got-reloc-global.s
@@ -0,0 +1,11 @@
+.text
+.nocmp
+ ldw .d2t2 *+B14($DSBT_index(__c6xabi_DSBT_BASE)), B14
+ ldw .d2t1 *+B14($GOT(a)), A1
+
+ .global a
+ .section .neardata,"aw",@progbits
+ .align 2
+ .type a, @object
+ .size a, 4
+a: