Ledger-Donjon / rainbow

Makes Unicorn traces. Generic Side-Channel and Fault Injection simulator
GNU Lesser General Public License v3.0
172 stars 34 forks source link

Add map_virtual_segments option to elfloader #37

Closed aiooss-ledger closed 2 years ago

aiooss-ledger commented 2 years ago

Segments with a empty content are not loaded by the elfloader. This is problematic for ELF files containing a .bss segment.

This PR proposes to add a map_virtual_segments argument to elfloader to let user opt-in in mapping the virtual size of empty segments.

aiooss-ledger commented 2 years ago

Proposition: Maybe we could activate this by default and rename the option no_virtual?

Also this PR includes a restriction on Unicorn version to make the CI pass. This restriction could be lifted when Unicorn 2 issues are fixed.