thixotropist / ghidra_import_tests

Experimental framework for testing Ghidra binary import support
1 stars 0 forks source link

Rebase Fedora RISCV image to Fedora 39 when available #8

Closed thixotropist closed 6 months ago

thixotropist commented 8 months ago

We use RISCV64 Fedora images as the reference source of importable RISCV64 binaries. A new Fedora is due out in October. We want to switch the RISCV relocation tests from Fedora 38 to Fedora 39 and update import integration tests to match.

Additionally, we want to scan this updated image for new instruction set extensions.

thixotropist commented 7 months ago

Generate the fedora39 exemplars within the fedora39 branch. We still need to review these new binaries in Ghidra and see if anything significant has changed.

thixotropist commented 7 months ago

The Fedora 39 RISCV-64 kernel and libc.so show some missing pieces in Ghidra 10.5.DEV support. At the moment we see:

It's worth noting that the Linux kernel uses riscv extensions without necessarily full binutils support. It also uses runtime self-modifying code, such as a boot-time patch applied to the strcmp routine to jump to the strcmp_zbb alternate optimized code if the Zbb extension is detected.