[7/16][binutils][AARCH64]Add relocation support for large memory model. [GAS]Add BFD_RELOC_AARCH64_TLSGD_MOVW_G1 support.
Renlin Li
renlin.li@arm.com
Tue Sep 8 17:52:00 GMT 2015
Hi all,
This is a patch to add BFD_RELOC_AARCH64_TLSGD_MOVW_G1 to GAS.
The following code sequence should be generated to access TLS variable
in General Dynamic TLS Model.
movz a0, #:tlsgd_g1:x R_AARCH64_TLSGD_MOVW_G1
movk a0, #:tlsgd_g0_nc:x R_AARCH64_TLSGD_MOVW_G0_NC
add a0, gp, a0
bl __tls_get_addr R_AARCH64_CALL26
nop
Binutils and gas regression test done without new failures. Okay to commit?
Regards,
Renlin
bfd/ChangeLog:
2015-09-08 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/ChangeLog:
2015-09-08 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/ChangeLog:
2015-09-08 Renlin Li <renlin.li@arm.com>
* gas/aarch64/reloc-tlsgd_g1.s: New.
* gas/aarch64/reloc-tlsgd_g1.s: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-GAS-BFD_RELOC_AARCH64_TLSGD_MOVW_G1.patch
Type: text/x-patch
Size: 5560 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150908/180dc800/attachment.bin>
More information about the Binutils
mailing list