crtn.S 847 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * libc/sysdeps/linux/microblaze/crtn.S -- init/fini exit code for microblaze
  3. * (baselined with gcc 4.1.2)
  4. *
  5. * Copyright (C) 2010 Digital Design Corporation
  6. *
  7. * This file is subject to the terms and conditions of the GNU Lesser
  8. * General Public License. See the file COPYING.LIB in the main
  9. * directory of this archive for more details.
  10. */
  11. #define END_INIT
  12. #define END_FINI
  13. #define ALIGN
  14. #include <libc-symbols.h>
  15. .section .init
  16. .align 2
  17. .globl _init
  18. .ent _init
  19. lwi r15, r1, 0
  20. lwi r19, r1, 28
  21. rtsd r15, 8
  22. addik r1, r1, 32 # Delay slot
  23. .end _init
  24. $Lfe2:
  25. .size _init,$Lfe2-_init
  26. .section .fini
  27. .align 2
  28. .globl _fini
  29. .ent _fini
  30. lwi r15, r1, 0
  31. lwi r19, r1, 28
  32. rtsd r15, 8
  33. addik r1, r1, 32 # Delay slot
  34. .end _fini
  35. $Lfe3:
  36. .size _fini,$Lfe3-_fini
  37. /*@TRAILER_BEGINS*/