aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2015-07-16 15:46:21 +0100
committerJiong Wang <jiong.wang@arm.com>2015-07-16 15:46:21 +0100
commit77a69ff840d60cca73624e16e5b2dd5217a6037e (patch)
tree035cbe693841d313212c8f09152f7752cd3f0afc /ld
parent6c37fedc41b028905cc828c0eccd3a8720512e4e (diff)
downloadgdb-77a69ff840d60cca73624e16e5b2dd5217a6037e.zip
gdb-77a69ff840d60cca73624e16e5b2dd5217a6037e.tar.gz
gdb-77a69ff840d60cca73624e16e5b2dd5217a6037e.tar.bz2
[AArch64][3/3] LD support BFD_RELOC_AARCH64_TLSLD_ADR_PREL21
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-aarch64/aarch64-elf.exp1
-rw-r--r--ld/testsuite/ld-aarch64/tls-tiny-ld.d8
-rw-r--r--ld/testsuite/ld-aarch64/tls-tiny-ld.s7
4 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c279cbd..31c5e0a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-16 Jiong Wang <jiong.wang@arm.com>
+
+ * ld-aarch64/tls-tiny-ld.s: New file.
+ * ld-aarch64/tls-tiny-ld.d: Ditto.
+ * ld-aarch64/aarch64-elf.exp: Run new test.
+
2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/zlibbegin.rS: Updated to .debug_.* with the
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp
index ac21d14..de3dcf7 100644
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -146,6 +146,7 @@ run_dump_test "tls-tiny-desc"
run_dump_test "tls-tiny-desc-ie"
run_dump_test "tls-tiny-desc-le"
run_dump_test "tls-tiny-ie"
+run_dump_test "tls-tiny-ld"
run_dump_test "tlsle"
run_dump_test "tlsle-symbol-offset"
run_dump_test "gc-got-relocs"
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-ld.d b/ld/testsuite/ld-aarch64/tls-tiny-ld.d
new file mode 100644
index 0000000..f2cb60c
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-tiny-ld.d
@@ -0,0 +1,8 @@
+#source: tls-tiny-ld.s
+#ld: -T relocs.ld -shared
+#readelf: -Wr
+
+Relocation section '\.rela\.dyn' at offset 0x10070 contains 2 entries:
+ Offset Info Type Symbol's Value Symbol's Name \+ Addend
+0000000000000000 0000000000000000 R_AARCH64_NONE 0
+0000000000020008 0000000200000404 R_AARCH64_TLS_DTPMOD64 0000000000000000 dummy \+ 0
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-ld.s b/ld/testsuite/ld-aarch64/tls-tiny-ld.s
new file mode 100644
index 0000000..c298b9d
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/tls-tiny-ld.s
@@ -0,0 +1,7 @@
+// Test file for AArch64 LD -- tlsldm
+
+ .text
+func:
+ add x1, x2, x3
+ // BFD_RELOC_AARCH64_TLSLD_ADR_PREL21
+ adr x0, :tlsldm:dummy