GJDuck / e9patch

A powerful static binary rewriting tool
GNU General Public License v3.0
986 stars 67 forks source link

A further question about issue 68. #69

Closed komorogrov closed 1 year ago

komorogrov commented 1 year ago

Is there any way to finish the work in https://github.com/GJDuck/e9patch/issues/68 in code nor command line?

Using the command line to match may be tedious in some complex situations, and you need to manually enumerate all the possibilities.

It would be much more elegant and convenient if this could be done directly in code.

Is there any way to pass the return value from e9_plugin_match() to the call trampoline code function entry instead of enumerating all the cases on the command line?

komorogrov commented 1 year ago

This may be impossible in terms of the structure of e9patch for these two functions work at different stages. Is this correct?

GJDuck commented 1 year ago

Yes it is possible, see the answer in #68.