crtn.S 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Specialized code needed to support construction and destruction of
  2. file-scope objects in C++ and Java code, and to support exception handling.
  3. Copyright (C) 1999 Free Software Foundation, Inc.
  4. Contributed by Charles-Antoine Gauthier (charles.gauthier@iit.nrc.ca).
  5. This file is part of GCC.
  6. GCC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10. GCC is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with GCC; see the file COPYING. If not, write to
  16. the Free Software Foundation, 59 Temple Place - Suite 330,
  17. Boston, MA 02111-1307, USA. */
  18. /* As a special exception, if you link this library with files
  19. compiled with GCC to produce an executable, this does not cause
  20. the resulting executable to be covered by the GNU General Public License.
  21. This exception does not however invalidate any other reasons why
  22. the executable file might be covered by the GNU General Public License. */
  23. /*
  24. * This file supplies function epilogues for the .init and .fini sections.
  25. * It is linked in after all other files.
  26. */
  27. .file "crtn.o"
  28. .ident "GNU C crtn.o"
  29. .section .init
  30. unlink;
  31. #if defined __ID_SHARED_LIB__
  32. P5 = [SP++];
  33. #elif defined __BFIN_FDPIC__
  34. P3 = [SP++];
  35. #endif
  36. rts;
  37. .section .fini
  38. unlink;
  39. #if defined __ID_SHARED_LIB__
  40. P5 = [SP++];
  41. #elif defined __BFIN_FDPIC__
  42. P3 = [SP++];
  43. #endif
  44. rts;
  45. .section .note.GNU-stack,"",%progbits