_dl_tls_static_size _dl_tls_static_align

Mike Frysinger vapier@gentoo.org
Mon Apr 20 23:55:00 GMT 2009


On Monday 20 April 2009 19:35:48 Petr Baudis wrote:
> 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.

that symbol didnt exist in glibc-2.8, so yes, that can probably be used so 
long as you dont need something even close to portable.  these internal 
functions (marked GLIBC_PRIVATE) come and go between glibc versions.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20090420/c7ecc086/attachment.sig>


More information about the Libc-help mailing list