Sources Bugzilla – Attachment #5253: combined fixes for bug #12454
}
/* Sort the entries. */
_dl_sort_fini (ns->_ns_loaded, maps, nloaded, used, nsid);
if (nloaded > 1)
/* Call all termination functions at once. */
#ifdef SHARED
/* We can skip looking for the binary itself which is at the front
of the search list. */
assert (nlist > 1);
assert (nlist > 0);
i = 1;
bool seen[nlist];
memset (seen, false, nlist * sizeof (seen[0]));
while (1)
while (nlist > 1)
{
/* Keep track of which object we looked at this round. */
seen[i] = true;