syscalldb.h 940 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _SYSCALLDB_H_
  2. #define _SYSCALLDB_H_
  3. #ifdef __ASSEMBLER__
  4. .weak syscalldb
  5. .type syscalldb, @function
  6. # if defined(PSEUDO) && defined(SYSCALL_NAME) && defined(SYSCALL_SYMBOL)
  7. # define SYSCALLDB \
  8. subq $128, %rsp; \
  9. callq *syscalldb@GOTPCREL(%rip); \
  10. addq $128, %rsp
  11. # else
  12. # define SYSCALLDB \
  13. callq *syscalldb@GOTPCREL(%rip)
  14. # endif
  15. #else /* !__ASSEMBLER__ */
  16. asm (
  17. ".weak syscalldb\r\n"
  18. ".type syscalldb, @function\r\n");
  19. #define SYSCALLDB \
  20. "subq $128, %%rsp\n\t" \
  21. "callq *syscalldb@GOTPCREL(%%rip)\n\t" \
  22. "addq $128, %%rsp\n\t"
  23. #define SYSCALLDB_ASM \
  24. "callq *syscalldb@GOTPCREL(%rip)\n\t"
  25. long int glibc_option (const char * opt);
  26. asm (
  27. ".weak glibc_option\r\n"
  28. ".type glibc_option, @function\r\n");
  29. #endif /* Assembler */
  30. #endif /* _SYSCALLDB_H */