linux: set CONFIG_ARCH_STRICT_ALIGN=n

set CONFIG_ARCH_STRICT_ALIGN=n to enable
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS. this
allows loading BPF program with unaligned memory
access generated by clang, see [0].

this change might cause BPF program fail to load
in loongarch CPU models that require strict aligned
memory access.

[0]: https://github.com/vincentmli/BPFire/issues/69

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2025-01-02 10:04:17 -08:00
parent bda777582c
commit 61f117be83

View File

@@ -342,7 +342,7 @@ CONFIG_NODES_SHIFT=6
CONFIG_ARCH_FORCE_MAX_ORDER=11
# CONFIG_ARCH_IOREMAP is not set
# CONFIG_ARCH_WRITECOMBINE is not set
CONFIG_ARCH_STRICT_ALIGN=y
CONFIG_ARCH_STRICT_ALIGN=n
CONFIG_CPU_HAS_FPU=y
CONFIG_CPU_HAS_LSX=y
CONFIG_CPU_HAS_LASX=y