2
0

crt_arch.h 379 B

12345678910111213141516171819
  1. __asm__(
  2. ".section .sdata,\"aw\"\n"
  3. ".text\n"
  4. ".global " START "\n"
  5. ".type " START ",%function\n"
  6. START ":\n"
  7. ".weak __global_pointer$\n"
  8. ".hidden __global_pointer$\n"
  9. ".option push\n"
  10. ".option norelax\n\t"
  11. "lla gp, __global_pointer$\n"
  12. ".option pop\n\t"
  13. "mv a0, sp\n"
  14. ".weak _DYNAMIC\n"
  15. ".hidden _DYNAMIC\n\t"
  16. "lla a1, _DYNAMIC\n\t"
  17. "andi sp, sp, -16\n\t"
  18. "tail " START "_c"
  19. );