[GAS][AARCH64]Add TLSDESC large memory model support.
authorRenlin Li <renlin.li@arm.com>
Fri, 2 Oct 2015 16:29:33 +0000 (17:29 +0100)
committerRenlin Li <renlin.li@arm.com>
Fri, 2 Oct 2015 16:56:09 +0000 (17:56 +0100)
commit43a357f99fc8c6535d064c5bce4b2865aa33bdd2
tree0b70d2944abcf75ac212b9328739bc5c701d7cf6
parentac734732481451698ee23990aaa64907e56dd082
[GAS][AARCH64]Add TLSDESC large memory model support.

bfd/

2015-10-02  Renlin Li <renlin.li@arm.com>

* elfnn-aarch64.c (elfNN_aarch64_howto_table): Check overflow for
BFD_RELOC_AARCH64_TLSDESC_OFF_G1.

gas/

2015-10-02  Renlin Li <renlin.li@arm.com>

* config/tc-aarch64.c (s_tlsdescadd): New.
(s_tlsdescldr): New.
(md_pseudo_table): Handle tlsdescadd and tlsdescldr pseudo ops.
(reloc_table): Add entries for BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC and
BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC.
(process_movw_reloc_info): Support AARCH64_TLSDESC_OFF_G1 and
    AARCH64_TLSDESC_OFF_G0_NC.
(md_apply_fix): Likewise.
(aarch64_force_relocation): Likewise.

gas/testsuite/

2015-10-02  Renlin Li <renlin.li@arm.com>

* gas/aarch64/reloc-tlsdesc_off_g0_nc.d: New.
* gas/aarch64/reloc-tlsdesc_off_g0_nc.s: New.
* gas/aarch64/reloc-tlsdesc_off_g1.d: New.
* gas/aarch64/reloc-tlsdesc_off_g1.s: New.
* gas/aarch64/tls-desc.d: New.
* gas/aarch64/tls-desc.s: New.
bfd/ChangeLog
bfd/elfnn-aarch64.c
gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/ChangeLog
gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g0_nc.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g0_nc.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g1.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g1.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/tls-desc.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/tls-desc.s [new file with mode: 0644]