On Wed, Mar 21, 2018 at 1:13 PM, Rafael <
rafael.bil...@gmail.com> wrote:
> The problem arises when the application is compiled with
> riscv64-unknown-linux-gnu-gcc hello.c -o hello.out.
> When I execute spike pk hello.out I get the assertion ../pk/elf.c:46:
> assertion failed: !(eh.e_flags & EF_RISCV_RVC).
Linux applications require a linux environment to run in. They won't
work on a bare metal simulator like spike. Use user-mode qemu
instead.
You apparently tried to disable C support and failed, but you didn't
state what exactly you did, so I can't tell what you did wrong. I
would guess that you have compressed instructions in libraries and/or
startfiles. You can disassemble code in your binary to check.
Jim