support/testing: TestClangCompilerRT: Add a kernel fragment for 48 bits virtual adress

Add a kernel fragment to enable
CONFIG_ARM64_VA_BITS_48 for the AARCH64 QEMU platform in the
clang compiler -rt runtime test.

Without this setting, this sanitize-based test fails with clang-20
due to insufficient virtual adress space.

"This might potentially affect ARM platforms with 39-bit address space." from [1]

[1] a588cfe37e

Signed-off-by: El Mehdi YOUNES <elmehdi.younes@smile.fr>
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
El Mehdi YOUNES
2025-05-22 09:18:13 +02:00
committed by Julien Olivain
parent 066f608872
commit df0805618b
2 changed files with 5 additions and 1 deletions

View File

@@ -7,8 +7,10 @@ FUZZ_TIMEOUT = 120
class TestClangCompilerRT(infra.basetest.BRTest):
br2_external = [infra.filepath("tests/package/br2-external/clang-compiler-rt")]
# Without this option the test fails due to insufficient address space for 64-bit allocator
va48_fragment = infra.filepath("tests/package/test_clang/linux-arm64-va48.fragment")
config = \
"""
f"""
BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
@@ -17,6 +19,7 @@ class TestClangCompilerRT(infra.basetest.BRTest):
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.283"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{va48_fragment}"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
BR2_PACKAGE_COMPILER_RT=y
BR2_PACKAGE_LLVM=y

View File

@@ -0,0 +1 @@
CONFIG_ARM64_VA_BITS_48=y