crti.S 546 B

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