[PATCH] ldconfig/x86: Store ISA level in cache and aux cache

H.J. Lu hjl.tools@gmail.com
Thu Jan 28 20:43:35 GMT 2021


On Thu, Jan 28, 2021 at 12:20 PM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu via Libc-alpha:
>
> > Subject: [PATCH] ldconfig/x86: Store ISA level in cache and aux cache
> >
> > Store ISA level in the portion of the unused upper 32 bits of the hwcaps
> > field in cache and the unused pad field in aux cache.  ISA level is stored
> > and checked only for shared objects in glibc-hwcaps subdirectories.  The
> > shared objects in the default directories aren't checked since there are
> > no fallbacks for these shared objects.
>
> Why is it necessary to duplicate the ISA levels in the cache when they
> are implied by the subdirectory name?
>
> I would have expected to store the ISA levels in the cache for DSOs
> *not* in glibc-hwcaps subdirectories.  The redundancy does not make
> sense to me.
>
> ldconfig checking for matches between ISA levels and subdirectory names
> makes sense too.
>

A v4 DSO may be placed in v2 subdirectory by mistake.


-- 
H.J.


More information about the Libc-alpha mailing list