[RFC] Changing return type for 'dlopen'...
Steven J. Hill
sjhill at realitydiluted.com
Fri Oct 21 02:07:16 UTC 2005
Greetings.
While working on uClib/NPTL for MIPS, I discovered that certain
tests for TLS (thread local storage) were failing simply do to
the fact that the 'handle' returned from glibc and uClibc are
different. uClibc returns a 'void *' which is actually a pointer
to a 'struct dyn_elf *'. In glibc, it is a 'struct link_map *'.
In the case of TLS, a 'struct elf_resolve' can be cast to a
'struct link_map' in order to supply the necessary TLS information
needed by the dynamic loader and libpthreads, don't ask just trust
me. Anyway, does anyone have objections if I make the 'void *'
returned actually be the address of a 'struct elf_resolve *'?
Thanks.
-Steve
More information about the uClibc
mailing list