aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-xtensa/tlslib.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-xtensa/tlslib.s')
-rw-r--r--ld/testsuite/ld-xtensa/tlslib.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-xtensa/tlslib.s b/ld/testsuite/ld-xtensa/tlslib.s
new file mode 100644
index 0000000..a2c430b
--- /dev/null
+++ b/ld/testsuite/ld-xtensa/tlslib.s
@@ -0,0 +1,18 @@
+ .section ".tdata", "awT", @progbits
+ .global sG1, sG2, sG3, sG4, sG5, sG6, sG7, sG8
+sG1: .long 513
+sG2: .long 514
+sG3: .long 515
+sG4: .long 516
+sG5: .long 517
+sG6: .long 518
+sG7: .long 519
+sG8: .long 520
+
+ .text
+ /* Dummy. */
+ .global __tls_get_addr
+ .type __tls_get_addr, @function
+__tls_get_addr:
+ entry sp, 16
+ retw