I use DS-5 to debugging linux kernel and device driver, shows "Failed to load symbols for "test.ko"", execute the following command:
add-symbol-file Z:/vmlinux
add-symbol-file Z:/test.ko
test.ko with debug_info and not stripped.
error message is:
ERROR(CMD685-COR11-IMG75): ! Failed to load symbols for "test.ko"! Failed to read the symbols from Z:\test.ko! No section relocation information provided for the relocatable ELF file "Z:\test.ko"
thanks
Hi ChenMy name is Stephen and I work at Arm.Selecting "Linux Kernel Debug" in the Debug Configuration is correct in this case.After loading the vmlinux symbols, the Debugger's OS awareness will automatically enable once it detects the Linux kernel has initialized itself.The error message "No section relocation information provided for the relocatable ELF file" is being given by the Debugger's ELF reader. It can't find the section names. Suggest you check with e.g. "objdump -h" that the named sections are present.Please also refer to the "kernel_module" example & tutorial that is supplied in examples/Linux_examples.zip. This includes a ready-made modex.ko that you can use as a reference.Hope this helpsStephen