crtn.S 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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, see
  16. <http://www.gnu.org/licenses/>. */
  17. /* As a special exception, if you link this library with files
  18. compiled with GCC to produce an executable, this does not cause
  19. the resulting executable to be covered by the GNU General Public License.
  20. This exception does not however invalidate any other reasons why
  21. the executable file might be covered by the GNU General Public License. */
  22. /*
  23. * This file supplies function epilogues for the .init and .fini sections.
  24. * It is linked in after all other files.
  25. */
  26. .file "crtn.o"
  27. .ident "GNU C crtn.o"
  28. .section .init
  29. unlink;
  30. #if defined __ID_SHARED_LIB__
  31. P5 = [SP++];
  32. #elif defined __BFIN_FDPIC__
  33. P3 = [SP++];
  34. #endif
  35. rts;
  36. .section .fini
  37. unlink;
  38. #if defined __ID_SHARED_LIB__
  39. P5 = [SP++];
  40. #elif defined __BFIN_FDPIC__
  41. P3 = [SP++];
  42. #endif
  43. rts;
  44. .section .note.GNU-stack,"",%progbits