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

Hook functions by address #44

Closed erdnaxe closed 1 year ago

erdnaxe commented 1 year ago

This patch proposes to use function addresses rather than name internally.

This enables users to hook functions by name (like before) or address. If multiple functions match one name, then all the functions are hooked. This helps when loading multiple files at different addresses having some common symbols.

This patch also adds a test to make sure hooking by address works.

🎧

erdnaxe commented 1 year ago

Closing in favor of https://github.com/Ledger-Donjon/rainbow/pull/51