public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* aarch64 TLS optimizations?
@ 2019-05-17 13:51 Tom Horsley
  2019-05-17 14:59 ` Andrew Haley
  2019-05-20 15:43 ` Szabolcs Nagy
  0 siblings, 2 replies; 6+ messages in thread
From: Tom Horsley @ 2019-05-17 13:51 UTC (permalink / raw)
  To: gcc

I'm trying (for reason too complex to go into) to
locate the TLS offset of the tcache_shutting_down
variable from malloc in the ubuntu provided
glibc on aarch64 ubuntu 18.04.

Various "normal" TLS variables appear to operate
much like x86_64 with a GOT table entry where the
TLS offset of the variable gets stashed.

But in the ubuntu glibc there is no GOT entry for
that variable, and disassembly of the code shows
that it seems to "just know" the offset to use.

Is there some kind of magic TLS optimization that
can happen for certain variables on aarch64? I'm trying
to understand how it could know the offset like
it appears to do in the code.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-05-20 17:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-17 13:51 aarch64 TLS optimizations? Tom Horsley
2019-05-17 14:59 ` Andrew Haley
2019-05-20 15:43 ` Szabolcs Nagy
2019-05-20 15:59   ` Tom Horsley
2019-05-20 17:08     ` Szabolcs Nagy
2019-05-20 17:14       ` Tom Horsley

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).