Assertion `size >= sizeof(Elf64_Ehdr)' failed.

35 views
Skip to first unread message

Aditya Kumar cs20m009

unread,
Oct 20, 2021, 6:03:25 AM10/20/21
to RISC-V SW Dev
When I am trying to commit log into a .log file by executing a .elf file using spike, I am getting the below error:

spike: ../fesvr/elfloader.cc:30: std::map<std::__cxx11::basic_string<char>, long unsigned int> load_elf(const char*, memif_t*, reg_t*): Assertion `size >= sizeof(Elf64_Ehdr)' failed.

Please help.
Thanks & regards,
Aditya Kumar

Tommy Murphy

unread,
Oct 20, 2021, 8:15:28 AM10/20/21
to Aditya Kumar cs20m009, RISC-V SW Dev
Sounds like your ELF file is malformed with regard to what Spike expects:

How exactly was it created?

From: Aditya Kumar cs20m009 <cs20...@smail.iitm.ac.in>
Sent: Wednesday, October 20, 2021 11:03:25 AM
To: RISC-V SW Dev <sw-...@groups.riscv.org>
Subject: [sw-dev] Assertion `size >= sizeof(Elf64_Ehdr)' failed.
 
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/ec2a8ae2-e32b-4f2c-9ed9-660deba26e56n%40groups.riscv.org.
Reply all
Reply to author
Forward
0 new messages