* Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
@ 2020-04-19 15:53 William Tambe
2020-04-19 16:09 ` H.J. Lu
0 siblings, 1 reply; 5+ messages in thread
From: William Tambe @ 2020-04-19 15:53 UTC (permalink / raw)
To: Binutils
Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
2020-04-19 15:53 Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ? William Tambe
@ 2020-04-19 16:09 ` H.J. Lu
2020-04-19 17:14 ` William Tambe
0 siblings, 1 reply; 5+ messages in thread
From: H.J. Lu @ 2020-04-19 16:09 UTC (permalink / raw)
To: William Tambe; +Cc: Binutils
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.
--
H.J.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
2020-04-19 16:09 ` H.J. Lu
@ 2020-04-19 17:14 ` William Tambe
2020-04-19 17:31 ` H.J. Lu
2020-04-20 20:20 ` Maciej W. Rozycki
0 siblings, 2 replies; 5+ messages in thread
From: William Tambe @ 2020-04-19 17:14 UTC (permalink / raw)
To: H.J. Lu; +Cc: Binutils
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
2020-04-19 17:14 ` William Tambe
@ 2020-04-19 17:31 ` H.J. Lu
2020-04-20 20:20 ` Maciej W. Rozycki
1 sibling, 0 replies; 5+ messages in thread
From: H.J. Lu @ 2020-04-19 17:31 UTC (permalink / raw)
To: William Tambe; +Cc: Binutils
On Sun, Apr 19, 2020 at 10:14 AM William Tambe <tambewilliam@gmail.com> wrote:
>
> 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 ?
>
Only the backend has the information if a symbol is TLS.
--
H.J.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ?
2020-04-19 17:14 ` William Tambe
2020-04-19 17:31 ` H.J. Lu
@ 2020-04-20 20:20 ` Maciej W. Rozycki
1 sibling, 0 replies; 5+ messages in thread
From: Maciej W. Rozycki @ 2020-04-20 20:20 UTC (permalink / raw)
To: William Tambe; +Cc: H.J. Lu, Binutils
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-20 20:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19 15:53 Within the GNU Assembler, how to detect whether a symbolS is a TLS symbol ? William Tambe
2020-04-19 16:09 ` H.J. Lu
2020-04-19 17:14 ` William Tambe
2020-04-19 17:31 ` H.J. Lu
2020-04-20 20:20 ` Maciej W. Rozycki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).