Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Padding instruction sequence with JA 0 #102

Open
michaeldwong opened this issue Jan 18, 2021 · 0 comments
Open

Padding instruction sequence with JA 0 #102

michaeldwong opened this issue Jan 18, 2021 · 0 comments

Comments

@michaeldwong
Copy link
Collaborator

Slots in the program have JA 0 instructions (instead of NOPs) after superoptimization so that the length of the optimized output instruction sequence is equivalent to the input instruction sequence; these JA 0 instructions have very little to no overhead. This is so that the optimized instructions can be patched into the ELF while still having the ELF offsets, reloc data, etc. still be applied. Future work includes ELF modifications so that an instruction sequence with a smaller length can be patched in without adding JA 0 instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant