Advertisement
Guest User

self.c

a guest
Apr 5th, 2018
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. int main(void);
  2.  
  3. void
  4. exit(int rc) {
  5.     asm("mov $60, %rax");
  6.     asm("syscall");
  7. }
  8.  
  9. void
  10. _start() {
  11.     exit(main());
  12. }
  13.  
  14. int
  15. main() {
  16.     return 42;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement