Re: [PATCH] Call tls_get_addr via GOT for GNU TLS if possible

2016-06-24 Thread Uros Bizjak
On Fri, Jun 24, 2016 at 5:59 PM, H.J. Lu wrote: > There are extensions to x86-64 psABI: > > https://groups.google.com/forum/#!topic/x86-64-abi/de5_KnLHxtI > > and i386 psABI: > > https://groups.google.com/forum/#!topic/ia32-abi/awsRSvJOJfs > > to call tls_get_addr via GOT. X86 assembler and linke

[PATCH] Call tls_get_addr via GOT for GNU TLS if possible

2016-06-24 Thread H.J. Lu
There are extensions to x86-64 psABI: https://groups.google.com/forum/#!topic/x86-64-abi/de5_KnLHxtI and i386 psABI: https://groups.google.com/forum/#!topic/ia32-abi/awsRSvJOJfs to call tls_get_addr via GOT. X86 assembler and linker in binutils 2.27 implemented call *__tls_get_addr@GOTPCREL(%