about summary refs log tree commit diff
path: root/elf/tst-glibc-hwcaps-cache.script
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-12-04 09:13:43 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-12-04 09:36:02 +0100
commitf267e1c9dd7fb8852cc32d6eafd96bbcfd5cbb2b (patch)
tree07f92c6c1156bc29d0a70faaeaec4519f465e584 /elf/tst-glibc-hwcaps-cache.script
parent600d9e0c87940da9b0fdeff492bf888df852d40c (diff)
downloadglibc-f267e1c9dd7fb8852cc32d6eafd96bbcfd5cbb2b.tar.gz
glibc-f267e1c9dd7fb8852cc32d6eafd96bbcfd5cbb2b.tar.xz
glibc-f267e1c9dd7fb8852cc32d6eafd96bbcfd5cbb2b.zip
x86_64: Add glibc-hwcaps support
The subdirectories match those in the x86-64 psABI:

https://gitlab.com/x86-psABIs/x86-64-ABI/-/commit/77566eb03bc6a326811cb7e9a6b9396884b67c7c

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/tst-glibc-hwcaps-cache.script')
-rw-r--r--elf/tst-glibc-hwcaps-cache.script10
1 files changed, 10 insertions, 0 deletions
diff --git a/elf/tst-glibc-hwcaps-cache.script b/elf/tst-glibc-hwcaps-cache.script
index 6356d15208..66d6942402 100644
--- a/elf/tst-glibc-hwcaps-cache.script
+++ b/elf/tst-glibc-hwcaps-cache.script
@@ -4,3 +4,13 @@
 cp $B/elf/libmarkermod2-1.so $L/libmarkermod2.so
 cp $B/elf/libmarkermod3-1.so $L/libmarkermod3.so
 cp $B/elf/libmarkermod4-1.so $L/libmarkermod4.so
+
+mkdirp 0770 $L/glibc-hwcaps/x86-64-v2
+cp $B/elf/libmarkermod2-2.so $L/glibc-hwcaps/x86-64-v2/libmarkermod2.so
+mkdirp 0770 $L/glibc-hwcaps/x86-64-v3
+cp $B/elf/libmarkermod3-2.so $L/glibc-hwcaps/x86-64-v2/libmarkermod3.so
+cp $B/elf/libmarkermod3-3.so $L/glibc-hwcaps/x86-64-v3/libmarkermod3.so
+mkdirp 0770 $L/glibc-hwcaps/x86-64-v4
+cp $B/elf/libmarkermod4-2.so $L/glibc-hwcaps/x86-64-v2/libmarkermod4.so
+cp $B/elf/libmarkermod4-3.so $L/glibc-hwcaps/x86-64-v3/libmarkermod4.so
+cp $B/elf/libmarkermod4-4.so $L/glibc-hwcaps/x86-64-v4/libmarkermod4.so