[PATCH] Change x86-64 TLSGD sequences

Jan Hubicka jh@suse.cz
Tue Oct 1 02:07:00 GMT 2002


> Hi!
> 
> x86-64 prefers to have at most 3 prefixes for an instruction, so TLSGD
> sequence was changed from
> .long 0x666666; leaq foo@tlsgd(%rip), %rdi
> call __tls_get_addr@plt
> to
> .byte 0x66; leaq foo@tlsgd(%rip), %rdi
> .word 0x6666; rex64; call __tls_get_addr@plt
> Ok to commit?
> 
> 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
> 
> bfd/
> 	* elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
> 	sequence and its transitions.
> ld/testsuite/
> 	* ld-x86-64/tlspic1.s: Change TLSGD sequences.
> 	* ld-x86-64/tlsbinpic.s: Likewise.
> 	* ld-x86-64/tlspic.dd: Adjust.
OK. Thanks!

Honza



More information about the Binutils mailing list