On Fri Dec 5 15:55:02 2025 +0000, André Zwing wrote:
Every ASM_DEFINE_FUNC is a jump/call target, no? So without that injected instruction jumps/calls won't work AFAIU
Isn't this stuff needed for every function pointer target, including every cross-dll operation (dllexport, callbacks, COM, etc)? Which is (to my knowledge) most of our asm functions.
Another option would be find some Linux syscall to disable the check for branch target instructions. We most likely need that to deal with user-provided ARM-native exe files, anyways.
(Disclaimer: I haven't tested any of this, nor do I have any hardware that needs such instructions, I'm just speculating. Needs more testing on real hardware.)