crt1.s 247 B

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