summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/tls-ok-36.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-cris/tls-ok-36.d')
-rw-r--r--ld/testsuite/ld-cris/tls-ok-36.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/tls-ok-36.d b/ld/testsuite/ld-cris/tls-ok-36.d
new file mode 100644
index 0000000000..506f7c900f
--- /dev/null
+++ b/ld/testsuite/ld-cris/tls-ok-36.d
@@ -0,0 +1,16 @@
+#source: start1.s
+#source: tls-tprelm.s --defsym r=32767
+#as: --no-underscore --em=criself
+#ld: -m crislinux
+#objdump: -s -j .got -j .text -j .tdata
+
+# Check that a R_CRIS_16_TPREL just below the theoretical limit works.
+
+.*: file format elf32-cris
+
+Contents of section \.text:
+ 80094 41b20000 5faeff7f .*
+Contents of section \.tdata:
+ 8209c 2a2a2a2a 2a2a2a2a 2a2a2a2a 2a2a2a2a .*
+#...
+ 8a08c 2a2a2a2a 2a2a2a2a 2a2a2a2a 2a2a2a2a .*