Skip to content
Advertisement

How to calculate the total basic block number in a Linux ELF binary

I’m trying to see how many code blocks are not necessary for common software under common usage scenarios. Is there a static binary analysis tool that can calculate the total basic block number of a Linux ELF that?

Advertisement

Answer

Okay, I wrote a script using Angr to obtain all the basic blocks:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement