llext: add a relocatable extension test to Xtensa

LLEXT on Xtensa now supports both shared and relocatable (partially
linked) extensions. This commit adds a copy of the LLEXT test for the
relocatable case.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2024-04-02 15:17:36 +02:00 committed by Maureen Helm
parent 34ab1a1e51
commit ce01d96402
2 changed files with 13 additions and 0 deletions

View File

@ -219,6 +219,7 @@ static LLEXT_CONST uint8_t object_ext[] __aligned(4) = {
};
LLEXT_LOAD_UNLOAD(object, true, NULL)
#ifndef CONFIG_LLEXT_TYPE_ELF_RELOCATABLE
static LLEXT_CONST uint8_t syscalls_ext[] __aligned(4) = {
#include "syscalls.inc"
};
@ -228,6 +229,7 @@ static LLEXT_CONST uint8_t threads_kernel_objects_ext[] __aligned(4) = {
#include "threads_kernel_objects.inc"
};
LLEXT_LOAD_UNLOAD(threads_kernel_objects, true, threads_objects_perm_setup)
#endif
#endif /* ! LOADER_BUILD_ONLY */

View File

@ -55,6 +55,17 @@ tests:
- CONFIG_MODULES=y
- CONFIG_LLEXT_STORAGE_WRITABLE=y
- CONFIG_LLEXT_TEST_HELLO=m
llext.simple.modules_enabled_writable_relocatable:
arch_exclude: arm arm64
filter: not CONFIG_MPU and not CONFIG_MMU
platform_key:
- simulation
- arch
extra_configs:
- CONFIG_MODULES=y
- CONFIG_LLEXT_STORAGE_WRITABLE=y
- CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
- CONFIG_LLEXT_TEST_HELLO=m
llext.simple.modules_enabled_readonly:
filter: not CONFIG_MPU and not CONFIG_MMU
arch_exclude: xtensa # for now