c - How to force gcc use int for system calls, not sysenter? -
Is it possible for GCC to implement int instructions for all system calls, but Sysenter ? This question might look strange, but I have to compile some projects like Python and Firefox in this way.
Summary
Thanks for jbcreix, I've downloaded glibc 2.9 source code, and #undef I386_USE_SYSENTER
by sysenter To disable usage, modify the lines in sysdeps / unix / sysv / linux / i386 / sysdep.h, and it works. After converting int 80
in
, compile your C library again and div>
> Syscall.s and link again.
This compiler is not a generated code, which means that you are lucky.
The original source of the original syscall is here, as the OP says:
And as I suspected it was actually a syscall. It is just That glibc sources are a labyrinth.
So I think she got it right, Eskiqui.
Comments
Post a Comment