about summary refs log tree commit diff
path: root/debug/read_chk.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:00:42 +0200
commit1df71d32fe5f5905ffd5d100e5e9ca8ad6210891 (patch)
tree6a747a087b99a4a5e0fbdcbe8959d378f0996170 /debug/read_chk.c
parent766b73768b290b303f5b56268c6c0d588d5a9267 (diff)
downloadglibc-1df71d32fe5f5905ffd5d100e5e9ca8ad6210891.tar.gz
glibc-1df71d32fe5f5905ffd5d100e5e9ca8ad6210891.tar.xz
glibc-1df71d32fe5f5905ffd5d100e5e9ca8ad6210891.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>
Diffstat (limited to 'debug/read_chk.c')
0 files changed, 0 insertions, 0 deletions