diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-06-27 17:05:23 +0300 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-06-27 23:55:59 +0800 |
commit | ee44863ae88e377a5df10db007ba9bfadde3d314 (patch) | |
tree | c3f534ebce92e9d561c51c1aa40c2254fdc7d18b /src/liblzma/common/index.h | |
parent | Add ifunc check to CMakeLists.txt (diff) | |
download | xz-ee44863ae88e377a5df10db007ba9bfadde3d314.tar.xz |
liblzma: Add ifunc implementation to crc64_fast.c.
The ifunc method avoids indirection via the function pointer
crc64_func. This works on GNU/Linux and probably on FreeBSD too.
The previous __attribute((__constructor__)) method is kept for
compatibility with ELF platforms which do support ifunc.
The ifunc method has some limitations, for example, building
liblzma with -fsanitize=address will result in segfaults.
The configure option --disable-ifunc must be used for such builds.
Thanks to Hans Jansen for the original patch.
Closes: https://github.com/tukaani-project/xz/pull/53
Diffstat (limited to 'src/liblzma/common/index.h')
0 files changed, 0 insertions, 0 deletions