crtn.S 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #include "sgidefs.h"
  2. #if _MIPS_SIM == _MIPS_SIM_ABI32
  3. .file 1 "initfini.c"
  4. .section .mdebug.abi32
  5. .previous
  6. .abicalls
  7. #APP
  8. .section .init
  9. #NO_APP
  10. .align 2
  11. .globl _init
  12. .type _init, @function
  13. #NO_APP
  14. lw $31,28($sp)
  15. #nop
  16. .set noreorder
  17. .set nomacro
  18. j $31
  19. addu $sp,$sp,32
  20. .set macro
  21. .set reorder
  22. #APP
  23. .section .fini
  24. #NO_APP
  25. .align 2
  26. .globl _fini
  27. .type _fini, @function
  28. #NO_APP
  29. lw $31,28($sp)
  30. #nop
  31. .set noreorder
  32. .set nomacro
  33. j $31
  34. addu $sp,$sp,32
  35. .set macro
  36. .set reorder
  37. #APP
  38. .ident "GCC: (GNU) 3.3.2"
  39. #elif _MIPS_SIM == _MIPS_SIM_NABI32
  40. .file 1 "initfini.c"
  41. .section .mdebug.abiN32
  42. .previous
  43. .abicalls
  44. #APP
  45. .section .init
  46. #NO_APP
  47. .align 3
  48. .globl _init
  49. .type _init, @function
  50. #NO_APP
  51. ld $31,8($sp)
  52. ld $28,0($sp)
  53. .set noreorder
  54. .set nomacro
  55. j $31
  56. addiu $sp,$sp,16
  57. .set macro
  58. .set reorder
  59. #APP
  60. .section .fini
  61. #NO_APP
  62. .align 3
  63. .globl _fini
  64. .type _fini, @function
  65. #NO_APP
  66. ld $31,8($sp)
  67. ld $28,0($sp)
  68. .set noreorder
  69. .set nomacro
  70. j $31
  71. addiu $sp,$sp,16
  72. .set macro
  73. .set reorder
  74. #APP
  75. .ident "GCC: (GNU) 3.4.3"
  76. #else /* N64 */
  77. .file 1 "initfini.c"
  78. .section .mdebug.abi64
  79. .previous
  80. .abicalls
  81. #APP
  82. .section .init
  83. #NO_APP
  84. .align 2
  85. .globl _init
  86. .type _init, @function
  87. #NO_APP
  88. ld $31,24($sp)
  89. ld $28,16($sp)
  90. #nop
  91. .set noreorder
  92. .set nomacro
  93. j $31
  94. daddu $sp,$sp,32
  95. .set macro
  96. .set reorder
  97. #APP
  98. .section .fini
  99. #NO_APP
  100. .align 2
  101. .globl _fini
  102. .type _fini, @function
  103. #NO_APP
  104. ld $31,24($sp)
  105. ld $28,16($sp)
  106. #nop
  107. .set noreorder
  108. .set nomacro
  109. j $31
  110. daddu $sp,$sp,32
  111. .set macro
  112. .set reorder
  113. #APP
  114. .ident "GCC: (GNU) 3.3.2"
  115. #endif /* N64 */