Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?

Maciej W. Rozycki macro@wdc.com
Mon Apr 20 20:20:55 GMT 2020


On Sun, 19 Apr 2020, William Tambe via Binutils wrote:

> > > Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
> >
> > S_SET_THREAD_LOCAL sets BSF_THREAD_LOCAL, which called by the backend.
> 
> How can the backend itself detect whether a symbolS is a TLS symbol ?

 Hmm, check if (...->bsym->flags & BSF_THREAD_LOCAL) != 0?

  Maciej


More information about the Binutils mailing list