[PATCH 1/2] elf: Introduce is_rtld_link_map
Florian Weimer
fweimer@redhat.com
Tue Dec 17 12:08:22 GMT 2024
* Andreas Schwab:
> 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?
Indeed it does. Will fix it in a second version.
Thanks,
Florian
More information about the Libc-alpha
mailing list