crt_arch.h 215 B

123456789101112
  1. __asm__(
  2. ".text \n"
  3. ".global " START " \n"
  4. START ": \n"
  5. " xor %rbp,%rbp \n"
  6. " mov %rsp,%rdi \n"
  7. ".weak _DYNAMIC \n"
  8. ".hidden _DYNAMIC \n"
  9. " lea _DYNAMIC(%rip),%rsi \n"
  10. " andq $-16,%rsp \n"
  11. " call " START "_c \n"
  12. );