-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create MOD_CODE #52
Comments
* Create initial macro MOD_CODE and init/fini functions. * Add mach-o fixups parsing. issue: #52
Init mod_code module and update mach-o parser. * Create initial macro MOD_CODE and init/fini functions. * Add mach-o fixups parsing. issue: #52
clang-cl or MSVC compatible clang compiles MOD_CODE absolutely wrong, so need to create special workaround. Corner of problem is how inline assembler directive ".section" procced. It breaks function and all code after MOD_CODE point are placed at the start of section ".text". So need to force compiler to tie it up. Possible solution
MOD_CODE will be placed in unlikely executable path. Lost part of initial function will be at likely path. There is only only one problem - it produces extra instructions for if clause. Maybe need to save MSVC type for pointer and replace useless code with NOPs. |
Create MSVC workaround for MOD_CODE. issue: #52
The text was updated successfully, but these errors were encountered: