crt_arch.h 307 B

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