diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2021-07-11 20:32:01 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2021-07-11 20:32:01 +0000 |
commit | aa81d1f793a66a1a6507fe7fc229c264dc8c7522 (patch) | |
tree | 2195dd675ad1a9bf5aabea6db71a60750cec0c8b /sbin/fdisk | |
parent | 434985fd73eb20f50c76baab91c420d9dbd134d5 (diff) |
Optimize gadget fixups for MOV instructions.
Instead of swapping registers around, we can just use the REV version of
the same instruction, which has the same effect but encodes differently and
does not result in return bytes in the binary. This reduces the number
of xchg instructions resulting from gadget fixing.
Prompted by ratchov@, with input from millert@ and sthen@.
ok sthen@
Diffstat (limited to 'sbin/fdisk')
0 files changed, 0 insertions, 0 deletions