retdec
|
Implement x86 syscall identification and fixing pass SyscallFixer
.
More...
#include <llvm/IR/Constants.h>
#include "retdec/bin2llvmir/optimizations/syscalls/syscalls.h"
#include "retdec/bin2llvmir/providers/asm_instruction.h"
Namespaces | |
retdec | |
retdec::bin2llvmir | |
Variables | |
std::map< uint64_t, std::string > | syscalls_x86_linux_32 |
std::map< uint64_t, std::string > | x86SocketSyscalls |
Implement x86 syscall identification and fixing pass SyscallFixer
.
std::map<uint64_t, std::string> syscalls_x86_linux_32 |
From /usr/include/asm/unistd_32.h Note: x86 and x86_64 have different ABIs, therefore different syscall tables. For x86_64 see /usr/include/asm/unistd_64.h.
TODO: windows, 64-bit, Itanium, etc.: https://w3challs.com/syscalls
std::map<uint64_t, std::string> x86SocketSyscalls |
From: /usr/include/linux/net.h