Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
William Tambe
tambewilliam@gmail.com
Sun Apr 19 17:14:13 GMT 2020
On Sun, Apr 19, 2020 at 12:10 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Sun, Apr 19, 2020 at 8:54 AM William Tambe via Binutils
> <binutils@sourceware.org> 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 ?
I thought about using S_GET_SEGMENT() in a comparison, but there is no
variable similar to text_section, data_section or bss_section to
compare against.
Any idea ?
>
> --
> H.J.
More information about the Binutils
mailing list