-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply machine instruction fixups to ELF section code
We sometimes use "MOV RAX, #xADDR; CALL RAX" when calling even though CALL rel would have worked, as would "LEA RAX, [RIP+k]" to make the MOV self-relocating. Applying fixups is a more general fix as it allows copying the dynamic space code into an ELF section. (All calls from dynamic space use the absolute MOV by necessity and I don't think we should rewrite them in editcore.) And the stepper requires an absolute MOV which is why that form appears in immobile code when it otherwise needn't.
- Loading branch information
Showing
1 changed file
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters