[PATCH][AARCH64] Add testcases for TLS relocations

Sofiane Naci sofiane.naci@arm.com
Mon Nov 26 16:50:00 GMT 2012


Hi,

This patch adds testcases for the TLS relocations:

  R_AARCH64_TLSLE_MOVW_TPREL_G2
  R_AARCH64_TLSLE_MOVW_TPREL_G1
  R_AARCH64_TLSLE_MOVW_TPREL_G1_NC

and adds a sanity check in gas to ensure R_AARCH64_TLSLE_MOVW_TPREL_G*_NC
relocations are correctly used with MOVK instructions.

Thanks
Sofiane

-----

ChangeLog:

2012-11-26  Sofiane Naci  <sofiane.naci@arm.com>

	gas/

	* config/tc-aarch64.c (process_movw_reloc_info):
	Allow BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC and
	BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC relocations
	for MOVK.
	Check use of BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC and
	BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC relocations
	with MOV[NZ].

	ld/testsuite/

	* ld-aarch64/tlsle-large-1.s: New file.
	* ld-aarch64/tlsle-large-1.d: New file.
	* ld-aarch64/tlsle-large-2.s: New file.
	* ld-aarch64/tlsle-large-2.d: New file.
	* ld-aarch64/aarch64-elf.exp: Add tlsle-large-1 and tlsle-large-2
tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-add-tls-tests.patch
Type: application/octet-stream
Size: 4029 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20121126/215ca30c/attachment.obj>


More information about the Binutils mailing list