aboutsummaryrefslogtreecommitdiff
path: root/dlfcn/Versions
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-02 07:32:20 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-02 09:06:10 +0200
commita23c28ec0d1cd67d25972181f613ef6dbfe4e299 (patch)
treea6dd4e7c1a2ebb65af836b87e8b441ae6ece357a /dlfcn/Versions
parentc44838ebf8b8da0795d56e05b477c5d2b37b4a19 (diff)
downloadglibc-a23c28ec0d1cd67d25972181f613ef6dbfe4e299.tar
glibc-a23c28ec0d1cd67d25972181f613ef6dbfe4e299.tar.gz
glibc-a23c28ec0d1cd67d25972181f613ef6dbfe4e299.tar.bz2
glibc-a23c28ec0d1cd67d25972181f613ef6dbfe4e299.zip
dlfcn: Move dlerror into libc
The symbol was moved using scripts/move-symbol-to-libc.py. There is a minor functionality enhancement: dlerror now sets errno if it was set as part of the exception. (This is the result of using %m in asprintf, to avoid the strerror PLT call.) The previous errno value upon function return was unpredictable. Documenting this as a feature is premature; we need to make sure that the error codes are meaningful when they are set by the dynamic loader. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'dlfcn/Versions')
-rw-r--r--dlfcn/Versions16
1 files changed, 12 insertions, 4 deletions
diff --git a/dlfcn/Versions b/dlfcn/Versions
index f07cb929aa..76049e1c6a 100644
--- a/dlfcn/Versions
+++ b/dlfcn/Versions
@@ -1,11 +1,22 @@
libc {
+ GLIBC_2.0 {
+ dlerror;
+ }
+ GLIBC_2.34 {
+ dlerror;
+ }
GLIBC_PRIVATE {
__libc_dlerror_result;
+ _dlerror_run;
+ _dlfcn_hook;
}
}
libdl {
GLIBC_2.0 {
- dladdr; dlclose; dlerror; dlopen; dlsym;
+ dladdr;
+ dlclose;
+ dlopen;
+ dlsym;
}
GLIBC_2.1 {
dlopen; dlvsym;
@@ -16,7 +27,4 @@ libdl {
GLIBC_2.3.4 {
dlmopen;
}
- GLIBC_PRIVATE {
- _dlfcn_hook;
- }
}