objdiff assumes that all symbols in executable memory sections are code,
which led to misbehaviour due to .rdata and .data being marked as
executable in JSRF. We now set these sections to non-executable in
Ghidra to work around this.
We can now create a fresh Ghidra project, import the JSRF executable
into it, import symbols into it, delink object files from it, and then
decompile with objdiff. Just needs some documentation.
If you've cloned this repository on Windows, you have either a POSIX
environment or Git Bash and can run this script. It just needs to call
the right headless Ghidra script depending on the OS (which it now tries
to do).