draperlaboratory / VIBES

Verified, Incremental, Binary Editing with Synthesis
MIT License
51 stars 1 forks source link

Add support for `ldr` pseudo-instruction #150

Closed bmourad01 closed 2 years ago

bmourad01 commented 2 years ago

Addresses #146.

This removes the hacky solution for using large constants in ARM/Thumb code. We now emit ldr pseudo-instructions.

This may insert literal pools at the end of our patch, which requires us to slightly adjust the way the patcher works.

philzook58 commented 2 years ago

Seems reasonable to me. I put some suggestions but then feel free to merge