[PATCH v4 1/3] elf: Allow dlopen of filter object to work [BZ #16272]
Andreas Schwab
schwab@suse.de
Tue Mar 10 09:51:26 GMT 2020
On Jan 29 2020, David Kilroy wrote:
> diff --git a/elf/dl-deps.c b/elf/dl-deps.c
> index 5103a8a..0730ea9 100644
> --- a/elf/dl-deps.c
> +++ b/elf/dl-deps.c
> @@ -485,14 +485,18 @@ _dl_map_object_deps (struct link_map *map,
>
> map->l_searchlist.r_list = &l_initfini[nlist + 1];
> map->l_searchlist.r_nlist = nlist;
> + unsigned int map_index = UINT_MAX;
>
> for (nlist = 0, runp = known; runp; runp = runp->next)
> {
> if (__builtin_expect (trace_mode, 0) && runp->map->l_faked)
> /* This can happen when we trace the loading. */
> --map->l_searchlist.r_nlist;
> - else
> + else {
> + if (runp->map == map)
> + map_index = nlist;
> map->l_searchlist.r_list[nlist++] = runp->map;
> + }
Wrong indentation.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list