public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Get TLS information without readelf
@ 2021-10-30  7:41 Jeff Andrews
  2021-10-30 13:33 ` Alexander Shpilkin
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Andrews @ 2021-10-30  7:41 UTC (permalink / raw)
  To: gcc-help

Hi all. I'd like to use tls (specifically __thread) with g++ but without a standard library. For the moment all my variables are zero initalized. How should I get the TLS memory size? I can see all the information I need in the TLS header after I build the binary by using "readelf -l". I'll need "MemSiz", possibly "Align" and once I have non zero thread locals I'll need VirtAddr and FileSiz. Is there a way to export these as a symbol/global variable?

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

end of thread, other threads:[~2021-10-30 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30  7:41 Get TLS information without readelf Jeff Andrews
2021-10-30 13:33 ` Alexander Shpilkin

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