crtn.S 1.7 KB

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