From a23c28ec0d1cd67d25972181f613ef6dbfe4e299 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 2 Jun 2021 07:32:20 +0200 Subject: 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 --- sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist | 2 ++ sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libdl.abilist | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/powerpc/powerpc64/be') diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist index b21072e313..1204e120c7 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist @@ -758,6 +758,7 @@ GLIBC_2.3 dirfd F GLIBC_2.3 dirname F GLIBC_2.3 div F GLIBC_2.3 dl_iterate_phdr F +GLIBC_2.3 dlerror F GLIBC_2.3 dngettext F GLIBC_2.3 dprintf F GLIBC_2.3 drand48 F @@ -2239,6 +2240,7 @@ GLIBC_2.34 cnd_init F GLIBC_2.34 cnd_signal F GLIBC_2.34 cnd_timedwait F GLIBC_2.34 cnd_wait F +GLIBC_2.34 dlerror F GLIBC_2.34 execveat F GLIBC_2.34 mtx_destroy F GLIBC_2.34 mtx_init F diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libdl.abilist b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libdl.abilist index 5b472f45aa..fdda336bd2 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libdl.abilist +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libdl.abilist @@ -1,6 +1,5 @@ GLIBC_2.3 dladdr F GLIBC_2.3 dlclose F -GLIBC_2.3 dlerror F GLIBC_2.3 dlopen F GLIBC_2.3 dlsym F GLIBC_2.3 dlvsym F -- cgit 1.4.1