[libc patch] __tls_get_addr with link_map * instead of modid
Jan Kratochvil
jan.kratochvil@redhat.com
Sat Oct 25 06:14:00 GMT 2014
On Sat, 25 Oct 2014 07:55:16 +0200, Rich Felker wrote:
> On Fri, Oct 24, 2014 at 04:40:14PM +0200, Jan Kratochvil wrote:
> > I forgot about this possibility - that libthread_db would provide just the
> > module ID (and not some per-thread address).
>
> Why not just use dl_iterate_phdr to get the module id?
I do not see where to find l_tls_modid in the returned data structures.
dl_iterate_phdr is in libc.so.6 (and not libdl.so.2) so that would be OK.
Thanks,
Jan
More information about the Libc-alpha
mailing list