2007-04-29 14:05:22 +00:00
|
|
|
/*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
2007-04-03 19:01:06 +00:00
|
|
|
|
|
|
|
FBSD_1.0 {
|
|
|
|
_rtld_error;
|
|
|
|
dlclose;
|
|
|
|
dlerror;
|
|
|
|
dlopen;
|
|
|
|
dlsym;
|
2009-04-03 19:17:23 +00:00
|
|
|
dlfunc;
|
2007-04-03 19:01:06 +00:00
|
|
|
dlvsym;
|
|
|
|
dladdr;
|
|
|
|
dllockinit;
|
|
|
|
dlinfo;
|
|
|
|
dl_iterate_phdr;
|
2007-07-11 23:07:37 +00:00
|
|
|
r_debug_state;
|
2007-04-09 23:00:29 +00:00
|
|
|
__tls_get_addr;
|
|
|
|
};
|
|
|
|
|
2012-01-07 10:33:01 +00:00
|
|
|
FBSD_1.3 {
|
|
|
|
fdlopen;
|
|
|
|
};
|
|
|
|
|
2007-05-01 13:46:27 +00:00
|
|
|
FBSDprivate_1.0 {
|
2007-04-03 19:01:06 +00:00
|
|
|
_rtld_thread_init;
|
|
|
|
_rtld_allocate_tls;
|
|
|
|
_rtld_free_tls;
|
2008-11-27 11:27:59 +00:00
|
|
|
_rtld_atfork_pre;
|
|
|
|
_rtld_atfork_post;
|
2010-08-23 15:27:03 +00:00
|
|
|
_rtld_addr_phdr;
|
2011-01-08 17:11:49 +00:00
|
|
|
_rtld_get_stack_prot;
|
2015-01-03 18:09:53 +00:00
|
|
|
_rtld_is_dlopened;
|
2014-05-07 17:21:22 +00:00
|
|
|
_r_debug_postinit;
|
Add version indicators to rtld.
It is wrong to relate on __FreeBSD_version, either from
include/param.h, kernel, or libc, to check for rtld features.
Rtld might be from newer world than the running userspace.
Add special private symbols exported by rtld itself, to indicate the
changes in runtime behavior, and features that cannot be otherwise
detected or deduced at runtime.
Note that the symbols are not exported from libc, so they intentionally
cannot be linked against, and exported from the private namespace from rtld.
Consumers are required to use dlsym(3). For instance, for
_rtld_version_laddr_offset, user should do
ptr = dlsym(RTLD_DEFAULT, "_rtld_version_laddr_offset")
or even
ptr = dlvsym(RTLD_DEFAULT, "_rtld_version_laddr_offset",
"FBSDprivate_1.0");
Non-null ptr means that the change is present.
Also add _rtld_version__FreeBSD_version indicator to report the
headers version used at time of the rtld build.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D24982
2020-05-26 19:22:46 +00:00
|
|
|
_rtld_version__FreeBSD_version;
|
|
|
|
_rtld_version_laddr_offset;
|
2021-04-05 03:05:44 +00:00
|
|
|
_rtld_version_dlpi_tls_data;
|
2007-04-03 19:01:06 +00:00
|
|
|
};
|