[prev in list] [next in list] [prev in thread] [next in thread]
List: binutils-cvs
Subject: [binutils-gdb] Adding tls-tiny-ie test.
From: Marcus Shawcroft <mshawcroft () sourceware ! org>
Date: 2015-02-26 22:43:41
Message-ID: 20150226224341.95474.qmail () sourceware ! org
[Download RAW message or body]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b108998791b5ac14ba97a0ca3f2e2ed8742f27bb
commit b108998791b5ac14ba97a0ca3f2e2ed8742f27bb
Author: Marcus Shawcroft <marcus.shawcroft@arm.com>
Date: Wed Feb 18 18:10:59 2015 +0000
Adding tls-tiny-ie test.
Diff:
---
ld/testsuite/ChangeLog | 6 ++++++
ld/testsuite/ld-aarch64/aarch64-elf.exp | 1 +
ld/testsuite/ld-aarch64/tls-tiny-ie.d | 8 ++++++++
ld/testsuite/ld-aarch64/tls-tiny-ie.s | 12 ++++++++++++
4 files changed, 27 insertions(+)
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 3235165..820aabc 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
+ * ld-aarch64/aarch64-elf.exp: Add tls-tiny-ie.
+ * ld-aarch64/tls-tiny-ie.d: New.
+ * ld-aarch64/tls-tiny-ie.s: New.
+
2015-02-26 Terry Guo <terry.guo@arm.com>
* ld-arm/attr-merge-3.attr: Remove Tag_ABI_HardFP_use.
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp
index 4810d60..fed34da 100644
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -124,6 +124,7 @@ run_dump_test "tls-relax-gdesc-ie-2"
run_dump_test "tls-relax-gdesc-le-2"
run_dump_test "tls-relax-ie-le-2"
run_dump_test "tls-relax-ie-le-3"
+run_dump_test "tls-tiny-ie"
run_dump_test "tlsle-symbol-offset"
run_dump_test "gc-got-relocs"
run_dump_test "gc-tls-relocs"
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-ie.d b/ld/testsuite/ld-aarch64/tls-tiny-ie.d
new file mode 100644
index 0000000..02aff35
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-tiny-ie.d
@@ -0,0 +1,8 @@
+#source: tls-tiny-ie.s
+#ld: -shared -T relocs.ld -e0
+#objdump: -dr
+#...
+ +10000: d53bd042 mrs x2, tpidr_el0
+ +10004: 58080020 ldr x0, 20008 <_GLOBAL_OFFSET_TABLE_\+0x8>
+ +10008: 8b000040 add x0, x2, x0
+ +1000c: b9400000 ldr w0, \[x0\]
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-ie.s b/ld/testsuite/ld-aarch64/tls-tiny-ie.s
new file mode 100644
index 0000000..2132334
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-tiny-ie.s
@@ -0,0 +1,12 @@
+ .global v1
+ .section .tdata,"awT",%progbits
+v1:
+ .word 1
+
+ .text
+
+# Test tiny TLS IE.
+ mrs x2, tpidr_el0
+ ldr x0, #:gottprel:v1
+ add x0, x2, x0
+ ldr w0, [x0]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic