Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct test {
- void *mem;
- };
- #define __pthread_self() ({ register struct test *self __asm__("$3"); __asm__ __volatile__ (".word 0x7c03e83b" : "=r"(self)); self; })
- void *getself2()
- {
- return __pthread_self()->mem;
- }
- int main()
- {
- getself2();
- }
Add Comment
Please, Sign In to add comment