Konstantin Belousov 08bfbd4359 rtld: workaround for broken ABI
Right now, libthr does not initialize RtldLockInfo.rtli_version when calling
_rtld_thread_init(), which makes versioning the interface troublesome.

Add a workaround: if the calling object of _rtld_thread_init() exports
the "_pli_rtli_version" symbol, then consider rtli_version initialized.
Otherwise, forcibly set it to RTLI_VERSION_ONE, currently defined as
RTLI_VERSION.

Export "_pli_rtli_version" from libthr and properly initialize rtli_version.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D29633
2021-04-10 17:33:33 +03:00
..
2020-09-11 13:28:37 +00:00
2019-12-11 17:37:53 +00:00
2020-09-09 00:39:47 +00:00
2021-04-10 17:33:33 +03:00
2019-11-12 22:31:59 +00:00
2019-12-04 16:56:11 +00:00
2019-12-11 17:37:53 +00:00
2021-04-10 11:16:02 +02:00
2020-04-06 23:16:05 +00:00
2020-09-09 00:39:47 +00:00