Hi,
I have build spike simulator along with pk. Sometimes when i run a program compiled with riscv32-unknown-elf i get this error
spike: …/fesvr/elfloader.cc:28: std::map<std::__cxx11::basic_string, long unsigned int> load_elf(const char*, memif_t*, reg_t*): Assertion `buf != MAP_FAILED’ failed.
What is this error pointing out ? my object file generated from riscv-unknown-elf-gcc is correct which shows
test_program.o: ELF 32-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, with debug_info, not stripped
What can be the problem here ?