crti.S 686 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* glibc's sysdeps/xtensa/elf/initfini.c used for reference [PROLOG] */
  2. .section .init
  3. .align 4
  4. .global _init
  5. .hidden _init
  6. .type _init, @function
  7. _init:
  8. #if defined(__XTENSA_WINDOWED_ABI__)
  9. entry sp, 48
  10. #elif defined(__XTENSA_CALL0_ABI__)
  11. addi sp, sp, -16
  12. s32i a0, sp, 0
  13. #ifdef __FDPIC__
  14. s32i a12, sp, 4
  15. mov a12, a11
  16. #endif
  17. #else
  18. #error Unsupported Xtensa ABI
  19. #endif
  20. .section .fini
  21. .align 4
  22. .global _fini
  23. .hidden _fini
  24. .type _fini, @function
  25. _fini:
  26. #if defined(__XTENSA_WINDOWED_ABI__)
  27. entry sp, 48
  28. #elif defined(__XTENSA_CALL0_ABI__)
  29. addi sp, sp, -16
  30. s32i a0, sp, 0
  31. #ifdef __FDPIC__
  32. s32i a12, sp, 4
  33. mov a12, a11
  34. #endif
  35. #else
  36. #error Unsupported Xtensa ABI
  37. #endif