https://bugs.kde.org/show_bug.cgi?id=415293

--- Comment #5 from pcpa <paulo.cesar.pereira.de.andr...@gmail.com> ---
It should be tricky to figure what version is being used.
Could look into the 'the elf_machine_runtime_setup' function in
sysdeps/${ARCH}/dl-machine.h glibc source.

Sample chunk from rhel7 x86_64 source:

...
          if (HAS_ARCH_FEATURE (AVX512F_Usable))
            *(ElfW(Addr) *) (got + 2) = (ElfW(Addr))
&_dl_runtime_profile_avx512;
          else if (HAS_ARCH_FEATURE (AVX_Usable))
            *(ElfW(Addr) *) (got + 2) = (ElfW(Addr)) &_dl_runtime_profile_avx;
          else
            *(ElfW(Addr) *) (got + 2) = (ElfW(Addr)) &_dl_runtime_profile_sse;
...

because of check for cpu features, a reproducer environment to validate all
entries, or experiment with automatic detection might need custom VMs.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to