mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
riscv: Add tests for riscv module loading
Add test cases for the two main groups of relocations added: SUB and SET, along with uleb128. Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> Link: https://lore.kernel.org/r/20231101-module_relocations-v9-3-8dfa3483c400@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
committed by
Palmer Dabbelt
parent
8fd6c51423
commit
af71bc1949
15
arch/riscv/kernel/tests/module_test/Makefile
Normal file
15
arch/riscv/kernel/tests/module_test/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
obj-m += test_module_linking.o
|
||||
|
||||
test_sub := test_sub6.o test_sub8.o test_sub16.o test_sub32.o test_sub64.o
|
||||
|
||||
test_set := test_set6.o test_set8.o test_set16.o test_set32.o
|
||||
|
||||
test_module_linking-objs += $(test_sub)
|
||||
|
||||
test_module_linking-objs += $(test_set)
|
||||
|
||||
ifeq ($(CONFIG_AS_HAS_ULEB128),y)
|
||||
test_module_linking-objs += test_uleb128.o
|
||||
endif
|
||||
|
||||
test_module_linking-objs += test_module_linking_main.o
|
||||
Reference in New Issue
Block a user