crt1.s 235 B

12345678910111213141516171819
  1. .weak _init
  2. .weak _fini
  3. .text
  4. .global _start
  5. _start:
  6. xor %ebp,%ebp
  7. pop %ecx
  8. mov %esp,%eax
  9. and $-16,%esp
  10. push %esp
  11. push %esp
  12. push %edx
  13. push $_fini
  14. push $_init
  15. push %eax
  16. push %ecx
  17. push $main
  18. call __libc_start_main
  19. 1: jmp 1b