about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
authorcaiyinyu <caiyinyu@loongson.cn>2023-02-28 16:21:41 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-03-07 21:42:25 +0800
commit4c721f24fc190d1dc935eb0bab283de7cf13182e (patch)
treeaf08773b43e547d8e518a1967a5bf4dd10d04e37 /dlfcn
parent436a604b7dc741fc76b5a6704c6cd8bb178518e7 (diff)
downloadglibc-4c721f24fc190d1dc935eb0bab283de7cf13182e.tar.gz
glibc-4c721f24fc190d1dc935eb0bab283de7cf13182e.tar.xz
glibc-4c721f24fc190d1dc935eb0bab283de7cf13182e.zip
x86: Fix bug about glibc.cpu.hwcaps.
Recorded in [BZ #30183]:

1. export GLIBC_TUNABLES=glibc.cpu.hwcaps=-AVX512
2. Add  _dl_printf("p -- %s\n", p); just before switch(nl) in
   sysdeps/x86/cpu-tunables.c
3. compiled and run ./testrun.sh /usr/bin/ls
you will get:

p -- -AVX512
p -- LC_ADDRESS=en_US.UTF-8
p -- LC_NUMERIC=C
...

The function, TUNABLE_CALLBACK (set_hwcaps)
(tunable_val_t *valp), checks far more than it should and it
should stop at end of "-AVX512".
Diffstat (limited to 'dlfcn')
0 files changed, 0 insertions, 0 deletions