frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
753 stars 245 forks source link

instructions on compiling with capstone diet, architecture specific #818

Open ajwerner opened 1 month ago

ajwerner commented 1 month ago

If I wanted to compile gum with capstone set to just one architecture, and in diet mode, how would I do it?

oleavr commented 1 month ago

Try: ./configure -- --force-fallback-for=capstone -Dcapstone:profile=slim -Dcapstone:archs=x86

ajwerner commented 1 month ago

Beautiful!

ajwerner commented 1 month ago

Is there a way to build a devkit (something the rust bindings will be happy with) with these options? It appears that the devkit size isn't meaningfully affected by this.

ajwerner commented 1 month ago

I was able to make it work by manually copying over the built capstone into the sdk, but that feels messy.