Re:Hacking a VW Golf Power Steering ECU
by markus_zhang on Monday January 03, 2022 @11:12AM
(#29782240)
One question: in part 2 it shows that Ghidra is able to produce disassembly from machine code, does that mean Ghidra knows the instruction set V850 uses?
[ Parent
| on HN ]
Ghidra uses an intermediate language called p-code. When defining the CPU opcodes (and how to parse them), you also write a small snippet of p-code that represent that instruction. This makes the decompiler architecture agnostic.
Example: https://github.com/NationalSecurityAgency/ghidra/blob/master...
Re:Hacking a VW Golf Power Steering ECU
by markus_zhang on Monday January 03, 2022 @11:22AM
(#29782364)
Thanks, I see. So it means anyone can add any architecture to Ghidra.