fzakaria / sqlelf

Explore ELF objects through the power of SQL
MIT License
240 stars 8 forks source link

RISC-V ELF support? #22

Open jackdbd opened 1 week ago

jackdbd commented 1 week ago

I tried using sqlelf to analyze a RISC-V ELF binary but got this error:

Unknown machine type for <my RISC-V ELF file>

I then realized that x86_64 is the only architecure supported.

Is there a plan to support RISC-V ELF binaries in the future?

fzakaria commented 1 week ago

There's a flag to disable eager loading some tables. If you turn off the instructions table; it should give you the rest OK.

I believe capstone supports RISC-V so it should be a straightforward improvement. Want to give it a crack?

jackdbd commented 2 days ago

I have just started learning RISC-V, but I'll give it a go.