crt_arch.h 276 B

12345678910111213141516
  1. __asm__(
  2. ".text\n"
  3. ".weak _DYNAMIC \n"
  4. ".hidden _DYNAMIC \n"
  5. ".global " START "\n"
  6. START ":\n"
  7. " xor %ebp,%ebp \n"
  8. " mov %esp,%eax \n"
  9. " and $-16,%esp \n"
  10. " push %eax \n"
  11. " push %eax \n"
  12. " call 1f \n"
  13. "1: addl $_DYNAMIC-1b,(%esp) \n"
  14. " push %eax \n"
  15. " call " START "_c \n"
  16. );