crtn.S 508 B

1234567891011121314151617181920212223242526272829
  1. /* glibc's sysdeps/xtensa/elf/initfini.c used for reference [EPILOG] */
  2. .section .init
  3. #if defined(__XTENSA_WINDOWED_ABI__)
  4. retw
  5. #elif defined(__XTENSA_CALL0_ABI__)
  6. #ifdef __FDPIC__
  7. l32i a12, sp, 4
  8. #endif
  9. l32i a0, sp, 0
  10. addi sp, sp, 16
  11. ret
  12. #else
  13. #error Unsupported Xtensa ABI
  14. #endif
  15. .section .fini
  16. #if defined(__XTENSA_WINDOWED_ABI__)
  17. retw
  18. #elif defined(__XTENSA_CALL0_ABI__)
  19. #ifdef __FDPIC__
  20. l32i a12, sp, 4
  21. #endif
  22. l32i a0, sp, 0
  23. addi sp, sp, 16
  24. ret
  25. #else
  26. #error Unsupported Xtensa ABI
  27. #endif