1
0

crt_arch.h 274 B

123456789101112131415
  1. __asm__(
  2. ".text \n"
  3. ".global " START "\n"
  4. ".type " START ",%function\n"
  5. START ":\n"
  6. " mov x29, #0\n"
  7. " mov x30, #0\n"
  8. " mov x0, sp\n"
  9. ".weak _DYNAMIC\n"
  10. ".hidden _DYNAMIC\n"
  11. " adrp x1, _DYNAMIC\n"
  12. " add x1, x1, #:lo12:_DYNAMIC\n"
  13. " and sp, x0, #-16\n"
  14. " b " START "_c\n"
  15. );