glibc/elf/tst-glibc-hwcaps-2-cache.script
H.J. Lu efbbd9c33a 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.

Tested on x86-64-v2, x86-64-v3 and x86-64-v4 machines with
--disable-hardcoded-path-in-tests and --enable-hardcoded-path-in-tests.
2021-01-13 05:51:17 -08:00

9 lines
409 B
Plaintext

# test-container does not support scripts in sysdeps directories, so
# collect everything in one file.
mkdirp 0770 $L/glibc-hwcaps/x86-64-v2
mkdirp 0770 $L/glibc-hwcaps/x86-64-v3
cp $B/elf/libx86-64-isa-level-1.so $L/libx86-64-isa-level.so
cp $B/elf/libx86-64-isa-level-3.so $L/glibc-hwcaps/x86-64-v2/libx86-64-isa-level.so
cp $B/elf/libx86-64-isa-level-4.so $L/glibc-hwcaps/x86-64-v3/libx86-64-isa-level.so