crtn.S 797 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. .section .fini
  26. .align 2
  27. .globl _fini
  28. .ent _fini
  29. lwi r15, r1, 0
  30. lwi r19, r1, 28
  31. rtsd r15, 8
  32. addik r1, r1, 32 # Delay slot
  33. .end _fini
  34. $Lfe3:
  35. /*@TRAILER_BEGINS*/