crti.S 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright (C) 2000-2022 Free Software Foundation, Inc.
  2. # Written By Timothy Wall
  3. #
  4. # This file is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU General Public License as published by the
  6. # Free Software Foundation; either version 3, or (at your option) any
  7. # later version.
  8. #
  9. # This file is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # General Public License for more details.
  13. #
  14. # Under Section 7 of GPL version 3, you are granted additional
  15. # permissions described in the GCC Runtime Library Exception, version
  16. # 3.1, as published by the Free Software Foundation.
  17. #
  18. # You should have received a copy of the GNU General Public License and
  19. # a copy of the GCC Runtime Library Exception along with this program;
  20. # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  21. # <http://www.gnu.org/licenses/>.
  22. # This file just make a stack frame for the contents of the .fini and
  23. # .init sections. Users may put any desired instructions in those
  24. # sections.
  25. .section ".init"
  26. .align 16
  27. .global _init
  28. _init:
  29. .prologue 14, 33
  30. .save ar.pfs, r34
  31. alloc r34 = ar.pfs, 0, 4, 0, 0
  32. .vframe r35
  33. mov r35 = r12
  34. .save rp, r33
  35. mov r33 = b0
  36. .body
  37. .section ".fini"
  38. .align 16
  39. .global _fini
  40. _fini:
  41. .prologue 14, 33
  42. .save ar.pfs, r34
  43. alloc r34 = ar.pfs, 0, 4, 0, 0
  44. .vframe r35
  45. mov r35 = r12
  46. .save rp, r33
  47. mov r33 = b0
  48. .body
  49. # end of crti.S