Hi everyone, I am new to dyninst and currently working on a binary rewriting project. At some point, I want to insert raw bytes instruction as the snippet and insert them into binary. For example insert "0x90"(nop) at the begining of every basic blocks, or using dynamorio's decode/encode library to generate the raw byte and convert them into snippet. Could you point me out some API to do this? A further question is how to control the rewritted BB's address. For example, when I follow the craftphc way to replace some instruction, the new BB itself is sitting in a new address, is there anyway to control the address of new inserted BBs? Thanks in advance. Have a nice day.
-- Best Regards X.Chen
_______________________________________________ Dyninst-api mailing list [email protected] https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
