crt1.s 240 B

123456789101112131415161718
  1. .text
  2. .global _start
  3. _start:
  4. xorl %ebp,%ebp
  5. popl %ecx
  6. movl %esp,%eax
  7. andl $-16,%esp
  8. pushl %esp
  9. pushl %esp
  10. pushl %edx
  11. pushl %ebp
  12. pushl %ebp
  13. pushl %eax
  14. pushl %ecx
  15. call 1f
  16. 1: addl $[main-.],(%esp)
  17. call __libc_start_main
  18. 1: jmp 1b