diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-09-20 11:00:42 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-09-20 11:06:05 +0200 |
commit | da5f134f6d59701a3a6119309ae91c93c3fa5b51 (patch) | |
tree | 2de0cc7336139d741f9a5c323e6c215f37b53ddb /NEWS | |
parent | d1241cf00139733de069c84933cd576dc1a1f45e (diff) | |
download | glibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.zip glibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.tar.gz glibc-da5f134f6d59701a3a6119309ae91c93c3fa5b51.tar.bz2 |
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 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -20,6 +20,7 @@ The following bugs are resolved with this release: [28846] CMSG_NXTHDR may trigger -Wstrict-overflow warning [29305] Conserve NSS buffer space during DNS packet parsing [29415] nscd: Fix netlink cache invalidation if epoll is used + [28937] New DSO dependency sorter does not put new map first if in a cycle [29446] _dlopen now ignores dl_caller argument in static mode [29485] Linux: Terminate subprocess on late failure in tst-pidfd [29490] alpha: New __brk_call implementation is broken |