]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-m68k/tls-main-1.s
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-m68k / tls-main-1.s
diff --git a/ld/testsuite/ld-m68k/tls-main-1.s b/ld/testsuite/ld-m68k/tls-main-1.s
new file mode 100644 (file)
index 0000000..75fb6d6
--- /dev/null
@@ -0,0 +1,19 @@
+#NO_APP
+       .text
+       .align  2
+       .globl  main
+       .type   main, @function
+       .globl  _start
+       .type   _start, @function
+main:
+_start:
+       link.w %fp,#0
+       move.l %a5,-(%sp)
+       move.l #_GLOBAL_OFFSET_TABLE_@GOTPC, %a5
+       lea (-6, %pc, %a5), %a5
+       move.l x@TLSIE(%a5),%a0
+       move.l -4(%fp),%a5
+       unlk %fp
+       rts
+       .size   main, .-main
+       .section        .note.GNU-stack,"",@progbits