+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.
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"
--- /dev/null
+#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\]
--- /dev/null
+ .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]