aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-arc/tls_gd-01.d13
-rw-r--r--ld/testsuite/ld-arc/tls_gd-01.s7
3 files changed, 25 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 76c2863..bf186c5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
+ * ld/testsuite/ld-arc/tls_gd-01.s: Added a testcase for this patch.
+ * ld/testsuite/ld-arc/tls_gd-01.d: Likewise.
+
+2016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
+
* testsuite/ld-arc/tls_ie-01.s: Added to verify associated fix.
* testsuite/ld-arc/tls_ie-01.d: Likewise
diff --git a/ld/testsuite/ld-arc/tls_gd-01.d b/ld/testsuite/ld-arc/tls_gd-01.d
new file mode 100644
index 0000000..f7027af
--- /dev/null
+++ b/ld/testsuite/ld-arc/tls_gd-01.d
@@ -0,0 +1,13 @@
+#source: tls_gd-01.s
+#as: -mcpu=arc700
+#ld: -shared
+#objdump: -d
+
+[^:]+: file format elf32-littlearc
+
+
+Disassembly of section \.text:
+
+[0-9a-f]+ <__start>:
+ [0-9a-f]+: 2700 7f80 0000 2080 add r0,pcl,0x2080
+ [0-9a-f]+: 2700 7f80 0000 2080 add r0,pcl,0x2080
diff --git a/ld/testsuite/ld-arc/tls_gd-01.s b/ld/testsuite/ld-arc/tls_gd-01.s
new file mode 100644
index 0000000..5fbfc54
--- /dev/null
+++ b/ld/testsuite/ld-arc/tls_gd-01.s
@@ -0,0 +1,7 @@
+ .text
+ .align 4
+
+ .global __start
+__start:
+ add r0, pcl, @baz@tlsgd
+ add r0, pcl, @bar@tlsgd