Displaying 1 result from an estimated 1 matches for "exit_syscall_type".
2011 Sep 17
1
[LLVMdev] Jumping to a fixed address in Clang
I am compiling some code with Clang which needs to jump to a fixed
address to perform a "syscall". These fixed addresses contain valid
code.
I noticed that this code produces a warning:
typedef void (*exit_syscall_type) (int status) __attribute__((noreturn));
void _exit(int status) __attribute__ ((noreturn));
void _exit(int status) {
((exit_syscall_type)0x10000)(status);
}
This (seemingly equivalent) code does not:
typedef void (*exit_syscall_type) (int status) __attribute__((noreturn));
void _exit(int status...