Guest User

Untitled

a guest
Oct 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. struct test {
  2. void *mem;
  3. };
  4.  
  5. #define __pthread_self() ({ register struct test *self __asm__("$3"); __asm__ __volatile__ (".word 0x7c03e83b" : "=r"(self)); self; })
  6.  
  7. void *getself2()
  8. {
  9. return __pthread_self()->mem;
  10. }
  11.  
  12.  
  13. int main()
  14. {
  15. getself2();
  16. }
Add Comment
Please, Sign In to add comment