]> sourceware.org Git - glibc.git/commit
dlfcn: Rework static dlopen hooks
authorFlorian Weimer <fweimer@redhat.com>
Thu, 3 Jun 2021 06:26:04 +0000 (08:26 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 3 Jun 2021 07:12:05 +0000 (09:12 +0200)
commit466c1ea15f461edb8e3ffaf5d86d708876343bbf
tree43d42d322ff24bd12c4124a9edafc4e0e4232f0a
parent9c76debc983e1a16e2e723b36526826713a671af
dlfcn: Rework static dlopen hooks

Consolidate all hooks structures into a single one.  There are
no static dlopen ABI concerns because glibc 2.34 already comes
with substantial ABI-incompatible changes in this area.  (Static
dlopen requires the exact same dynamic glibc version that was used
for static linking.)

The new approach uses a pointer to the hooks structure into
_rtld_global_ro and initalizes it in __rtld_static_init.  This avoids
a back-and-forth with various callback functions.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
15 files changed:
dlfcn/dladdr.c
dlfcn/dladdr1.c
dlfcn/dlclose.c
dlfcn/dlerror.c
dlfcn/dlinfo.c
dlfcn/dlmopen.c
dlfcn/dlopen.c
dlfcn/dlopenold.c
dlfcn/dlsym.c
dlfcn/dlvsym.c
elf/Versions
elf/dl-libc.c
elf/rtld_static_init.c
include/dlfcn.h
sysdeps/generic/ldsodefs.h
This page took 0.045647 seconds and 5 git commands to generate.