[PATCH 1/2] elf: Introduce is_rtld_link_map
Andreas Schwab
schwab@suse.de
Tue Dec 17 11:52:41 GMT 2024
On Dez 17 2024, Florian Weimer wrote:
> diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
> index 91447a5e77..f223abd7f4 100644
> --- a/sysdeps/generic/ldsodefs.h
> +++ b/sysdeps/generic/ldsodefs.h
> @@ -1329,10 +1329,17 @@ rtld_active (void)
> return GLRO(dl_init_all_dirs) != NULL;
> }
>
> +/* Returns true of L is the link map of the dynamic linker itself. */
> +static inline bool
> +is_rtld_link_map (const struct link_map *l)
> +{
> + return l == &_dl_rtld_map;
> +}
> +
Does this depend on patch 2?
--
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