lifting-bits / anvill

anvill forges beautiful LLVM bitcode out of raw machine code
GNU Affero General Public License v3.0
339 stars 39 forks source link

Have a way of annotating llvm instructions with the architecture #277

Open pgoodman opened 2 years ago

pgoodman commented 2 years ago

Just like we do with pc metadata annotation. This will help us more reliably track things when a given function goes from ARM to Thumb mode.

Look at the lifter options and how we can set a const char * name to some pc metadata, then do the same for the architecture.

pgoodman commented 2 years ago

Use inst.sub_arch from inside the function lifter.