crtn.S 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 makes sure that the .fini and .init sections do in
  23. # fact return. Users may put any desired instructions in those sections.
  24. # This file is the last thing linked into any executable.
  25. .section ".init"
  26. ;;
  27. mov ar.pfs = r34
  28. mov b0 = r33
  29. .restore sp
  30. mov r12 = r35
  31. br.ret.sptk.many b0
  32. .section ".fini"
  33. ;;
  34. mov ar.pfs = r34
  35. mov b0 = r33
  36. .restore sp
  37. mov r12 = r35
  38. br.ret.sptk.many b0
  39. # end of crtn.S