pfalcon / ScratchABit

Easily retargetable and hackable interactive disassembler with IDAPython-compatible plugin API
GNU General Public License v3.0
395 stars 47 forks source link

There can be multiple xref types for the same address #10

Open pfalcon opened 9 years ago

pfalcon commented 9 years ago

It's possible to have mov [mem], offset mem. Even more it may come with analyses and transformations on top of raw machine code. For example, I already saw it with "l32r resolution" xform for xtensa.

Ignoring this fact won't work well, at least because there can be competition between different passes what value to store. The way to solve this is to record multiple values - as set, or to save memory, as string of multiple chars.