]> git.ipfire.org Git - thirdparty/zstd.git/commit
Avoid SIGBUS on armv6 2633/head
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Tue, 11 May 2021 15:46:55 +0000 (17:46 +0200)
committerBernhard M. Wiedemann <bwiedemann@suse.de>
Tue, 11 May 2021 15:51:03 +0000 (17:51 +0200)
commit28d0120b5ac62b56cd858bd46480c73730d044b4
tree71749894869c27bf0e862cec813284e98f8cba14
parent9fb5a0407cc891555c7286fd4995a7732131cc06
Avoid SIGBUS on armv6

When running armv6 userspace on armv8 hardware with a 64 bit Linux kernel,
the mode 2 caused SIGBUS (unaligned memory access).
Running all our arm builds in the build farm
only on armv8 simplifies administration a lot.

Depending on compiler and environment, this change might slow down
memory accesses (did not benchmark it). The original analysis is 6 years old.

Fixes #2632
lib/common/mem.h
lib/common/xxhash.c