V5 [PATCH 2/2] ldconfig/x86: Add ISA level check to glibc-hwcaps

Florian Weimer fweimer@redhat.com
Mon Dec 7 10:00:34 GMT 2020


* H. J. Lu via Libc-alpha:

> Add ISA level check to detect misplaced shared objects with incompatible
> ISA level requirement in glibc-hwcaps subdirectories:
>
> /sbin/ldconfig: /usr/lib64/glibc-hwcaps/x86-64-v2/libx86-64-isa-level.so: skipped, ISA level mismatch (x86-64-v4 > x86-64-v2)

I think this is conceptually the wrong approach.  ldconfig should copy
the notes into the cache (and aux cache), and ld.so should skip cache
contents that doesn't match the run-time requirements during load.  Then
directory place does not matter that much anymore.

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