[PATCH] [BZ #21391] x86: Set dl_platform and dl_hwcap from CPU features

Florian Weimer fweimer@redhat.com
Wed Apr 19 19:02:00 GMT 2017


On 04/19/2017 08:35 PM, H.J. Lu wrote:
> dl_platform and dl_hwcap are set from AT_PLATFORM and AT_HWCAP very
> early during startup.  They are used by dynamic linker to determine
> platform and build an array of hardware capability names, which are
> added to search path when loading shared object.  dl_platform and
> dl_hwcap are unused on x86-64.  On i386, i386, i486, i586 and i686
> platforms were supported and only SSE2 capability was used.

I don't know where you want to take this, so it's hard to tell if this 
is going to cause problems eventually.  GLRO is default-initialized in a 
nested libc (after dlmopen or static dlopen).

Thanks,
Florian



More information about the Libc-alpha mailing list