auto-re-relativize level 1-3 ctis when encoding
From rnk@google.com on April 12, 2012 13:50:34
This came up on our users mailing list (titled "enabling fixups of relatives jmps "), but we didn't file a bug about it: https://groups.google.com/forum/#!topic/dynamorio-users/lGQralbJg_U Our response: """ Force a re-encode: instr_set_raw_bits_valid(instr, false).
Note that when not in standalone mode all branches are mangled and thus this is never an issue. """
We need to at least document this somewhere. The better solution is to add a check in our encoder for if the instruction takes a relative offset and assume that those bits are invalid. 99% of the time users will want to re-encode decoded instructions to a different pc, so we can't use the current offset.
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=731