diff options
author | Renlin Li <renlin.li@arm.com> | 2015-10-02 16:04:09 +0100 |
---|---|---|
committer | Renlin Li <renlin.li@arm.com> | 2015-10-02 17:56:08 +0100 |
commit | 1aa66fb1527c3c81fef2a39a3a3ec9d36f1cfdec (patch) | |
tree | 08f4d2216e85d54672dc0448f7d37467603fe903 /gas/testsuite | |
parent | dc8008f508bb39ccbca49ea71a7d5c70571c4685 (diff) | |
download | gdb-1aa66fb1527c3c81fef2a39a3a3ec9d36f1cfdec.zip gdb-1aa66fb1527c3c81fef2a39a3a3ec9d36f1cfdec.tar.gz gdb-1aa66fb1527c3c81fef2a39a3a3ec9d36f1cfdec.tar.bz2 |
[GAS][AARCH64]Add BFD_RELOC_AARCH64_TLSGD_MOVW_G1 support.
bfd/
2015-10-02 Renlin Li <renlin.li@arm.com>
* reloc.c (BFD_RELOC_AARCH64_TLSGD_MOVW_G1): New entry.
* elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
BFD_RELOC_AARCH64_TLSGD_MOVW_G1.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
gas/
2015-10-02 Renlin Li <renlin.li@arm.com>
* config/tc-aarch64.c (reloc_table): New relocation modifier tlsgd_g1.
(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_g1.s: New.
* gas/aarch64/reloc-tlsgd_g1.s: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/reloc-tlsgd_g1.d | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/reloc-tlsgd_g1.s | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 585d354..cf9e0da 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_g1.s: New. + * gas/aarch64/reloc-tlsgd_g1.s: New. + +2015-10-02 Renlin Li <renlin.li@arm.com> + * gas/aarch64/reloc-gotoff_g0_nc.s: New. * gas/aarch64/reloc-gotoff_g0_nc.d: New. diff --git a/gas/testsuite/gas/aarch64/reloc-tlsgd_g1.d b/gas/testsuite/gas/aarch64/reloc-tlsgd_g1.d new file mode 100644 index 0000000..7063f4e --- /dev/null +++ b/gas/testsuite/gas/aarch64/reloc-tlsgd_g1.d @@ -0,0 +1,9 @@ +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +0000000000000000 <.*>: + 0: d2a0001c movz x28, #0x0, lsl #16 + 0: R_AARCH64_TLSGD_MOVW_G1 var diff --git a/gas/testsuite/gas/aarch64/reloc-tlsgd_g1.s b/gas/testsuite/gas/aarch64/reloc-tlsgd_g1.s new file mode 100644 index 0000000..12f73cd --- /dev/null +++ b/gas/testsuite/gas/aarch64/reloc-tlsgd_g1.s @@ -0,0 +1,4 @@ +func: + + // R_AARCH64_TLSGD_MOVW_G1 var + movz x28, #:tlsgd_g1:var |