addrianyy / riscv-cfg

Generate control flow graph for riscv64 compiled functions.
MIT License
2 stars 0 forks source link

Compilers and ELF. #2

Open XC1a opened 2 years ago

XC1a commented 2 years ago

I use the LLVM to generate the ELF of RISCV64. But I run the CFG gen, there is nothing happened and I found the "executable.funcs" is empty. If there are some compiler requires of riscv-cfg. Can I use the LLVM?

addrianyy commented 2 years ago

Hi. Debug info is required to fill executable.funcs. Compile with -g option.

XC1a commented 2 years ago

Ok thank you. I will try it!

XC1a commented 2 years ago

Hi. Debug info is required to fill executable.funcs. Compile with -g option.

It works, thanks! I have another question, this work can analyze taget address of indirect jump instructions in some situation, like jarl. For example, analyze the register value before the jump instruction. Thanks so much!