This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: _dl_tls_static_size _dl_tls_static_align
On Mon, Apr 20, 2009 at 07:20:53PM -0400, Mike Frysinger wrote:
> On Monday 20 April 2009 16:11:29 Eduardo wrote:
> > Is there a way to access the symbols _dl_tls_static_size and
> > _dl_tls_static_align from a user program? I mean, I want to know the
> > size and alignment of the TLS in a program.
> >
> > This symbols are define inside the dynamic loader, but apparently they
> > are not exported.
>
> if they arent exported, then you cant access them
However, you can use _dl_get_tls_static_info() as declared in
sysdeps/generic/ldsodefs.h to get the information. Note that this is
an internal interface and probably has no ABI stability guarantees.
--
Petr "Pasky" Baudis
The average, healthy, well-adjusted adult gets up at seven-thirty
in the morning feeling just terrible. -- Jean Kerr