mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-06 23:02:10 +03:00
521b4d27a0
dl_iterate_phdr was wrongly reporting the address of the DSO's PT_TLS image rather than the calling thread's instance of the TLS. the man page, which is essentially normative for a nonstandard function of this sort, clearly specifies the latter. it does not clarify where exactly within/relative-to the image the pointer should point, but the reasonable thing to do is match the ABI's DTP offset, and this seems to be what other implementations do. |
||
---|---|---|
.. | ||
dlstart.c | ||
dynlink.c |