aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRenlin Li <renlin.li@arm.com>2015-10-02 16:28:49 +0100
committerRenlin Li <renlin.li@arm.com>2015-10-02 17:56:08 +0100
commit3e8286c0d2f6f94fcbc38a2233d85b90ca4040c0 (patch)
tree5f73927b37506459f3dffa969ec394bdbf8700e5 /gas/testsuite
parent94facae3374655816798d1d505b447f81db4759d (diff)
downloadgdb-3e8286c0d2f6f94fcbc38a2233d85b90ca4040c0.zip
gdb-3e8286c0d2f6f94fcbc38a2233d85b90ca4040c0.tar.gz
gdb-3e8286c0d2f6f94fcbc38a2233d85b90ca4040c0.tar.bz2
[GAS][AARCH64]Add BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC support.
bfd/ 2015-10-02 Renlin Li <renlin.li@arm.com> * reloc.c (BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC): New entry. * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC. * libbfd.h: Regenerate. * bfd-in2.h: Likewise gas/ 2015-10-02 Renlin Li <renlin.li@arm.com> * config/tc-aarch64.c (reloc_table): New relocation modifier tlsgd_g0_nc. (process_movw_reloc_info): Support BFD_RELOC_AARCH64_TLSGD_MOVW_G1. (md_apply_fix): Likewise. (aarch64_force_relocation): Likewise. gas/testsuite/ 2015-10-02 Renlin Li <renlin.li@arm.com> * gas/aarch64/reloc-tlsgd_g0_nc.d: New. * gas/aarch64/reloc-tlsgd_g0_nc.s: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d9
-rw-r--r--gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.s4
3 files changed, 18 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index cf9e0da..cbc37a8 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2015-10-02 Renlin Li <renlin.li@arm.com>
+ * gas/aarch64/reloc-tlsgd_g0_nc.d: New.
+ * gas/aarch64/reloc-tlsgd_g0_nc.s: New.
+
+2015-10-02 Renlin Li <renlin.li@arm.com>
+
* gas/aarch64/reloc-tlsgd_g1.s: New.
* gas/aarch64/reloc-tlsgd_g1.s: New.
diff --git a/gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d b/gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d
new file mode 100644
index 0000000..157c5fd
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d
@@ -0,0 +1,9 @@
+#objdump: -dr
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+0000000000000000 <.*>:
+ 0: f280001c movk x28, #0x0
+ 0: R_AARCH64_TLSGD_MOVW_G0_NC var
diff --git a/gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.s b/gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.s
new file mode 100644
index 0000000..bb253fa
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.s
@@ -0,0 +1,4 @@
+func:
+
+ // R_AARCH64_TLSGD_MOVW_G0_NC var
+ movk x28, #:tlsgd_g0_nc:var