aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/readdir_r.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-09-20 11:00:42 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-09-20 11:06:05 +0200
commitda5f134f6d59701a3a6119309ae91c93c3fa5b51 (patch)
tree2de0cc7336139d741f9a5c323e6c215f37b53ddb /sysdeps/unix/sysv/linux/readdir_r.c
parentd1241cf00139733de069c84933cd576dc1a1f45e (diff)
downloadglibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.tar
glibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.tar.gz
glibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.tar.bz2
glibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.zip
elf: Implement force_first handling in _dl_sort_maps_dfs (bug 28937)
The implementation in _dl_close_worker requires that the first element of l_initfini is always this very map (“We are always the zeroth entry, and since we don't include ourselves in the dependency analysis start at 1.”). Rather than fixing that assumption, this commit adds an implementation of the force_first argument to the new dependency sorting algorithm. This also means that the directly dlopen'ed shared object is always initialized last, which is the least surprising behavior in the presence of cycles. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> (cherry picked from commit 1df71d32fe5f5905ffd5d100e5e9ca8ad6210891)
Diffstat (limited to 'sysdeps/unix/sysv/linux/readdir_r.c')
0 files changed, 0 insertions, 0 deletions