dlfcn: Implement the RTLD_DI_PHDR request type for dlinfo
commitd056c212130280c0a54d9a4f72170ec621b70ce5
authorFlorian Weimer <fweimer@redhat.com>
Fri, 29 Apr 2022 15:00:53 +0000 (29 17:00 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 29 Apr 2022 15:00:53 +0000 (29 17:00 +0200)
treef7d368b4f45bcb3eba90b5e89e19ba36b1f68fe1
parent93804a1ee084d4bdc620b2b9f91615c7da0fabe1
dlfcn: Implement the RTLD_DI_PHDR request type for dlinfo

The information is theoretically available via dl_iterate_phdr as
well, but that approach is very slow if there are many shared
objects.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@rehdat.com>
dlfcn/Makefile
dlfcn/dlfcn.h
dlfcn/dlinfo.c
dlfcn/tst-dlinfo-phdr.c [new file with mode: 0644]
manual/dynlink.texi