NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
51.28k stars 5.84k forks source link

IDA XML importer doesn't export/import references with displacement (OPND_OUTER) #534

Open lab313ru opened 5 years ago

lab313ru commented 5 years ago

IDA Pro has such dialog: изображение

For example I've created such reference: изображение изображение

After importing IDB into Ghidra, this references didn't appear: изображение

lab313ru commented 5 years ago

Options were used by default: all except stack references.

lab313ru commented 5 years ago

IDA has a special flag for M68000 offsets that may be used for (register-relative offsets): OPND_OUTER. In that case operand changes its type to o_displ.

Usage is: OpOff(ea, n | OPND_OUTER, 0xFF0000).

lab313ru commented 5 years ago

Fixed in my pull request: https://github.com/NationalSecurityAgency/ghidra/pull/537