[PATCH 1/3] x86: Initialize CPU info via IFUNC relocation [BZ 26203]

Florian Weimer fweimer@redhat.com
Mon Sep 21 08:21:30 GMT 2020


* H. J. Lu:

>> Putting this data into _rtld_global_ro is not correct if it is required
>> after static dlopen.  The current static dlopen approach simply does not
>> support that.  You can only assume that libc.so has been initialized
>> after static dlopen.

> Unless it is removed,  _rtld_global_ro is the right place.  _rtld_global_ro
> is initialized by dynamic relocation.  My patch does it.

It initializes only part of it.  I find this rather confusing.

Why is this data in ld.so in the first place?

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill



More information about the Libc-alpha mailing list