crti.S 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. .pic
  6. #APP
  7. .section .init
  8. .align 2
  9. .globl _init
  10. .type _init, @function
  11. _init:
  12. .LFB28:
  13. ! Generate instructions for ABI: 2
  14. ! pretend args size: 0, auto vars size: 0, pushed regs size: 12, outgoing args size: 0
  15. ! frame pointer: $fp, needed: yes
  16. ! $fp $gp $lp
  17. ! prologue
  18. .off_16bit
  19. smw.adm $sp,[$sp],$sp,#0x8
  20. smw.adm $sp,[$sp],$sp,#0x6
  21. .restore_16bit
  22. sethi $gp, hi20(_GLOBAL_OFFSET_TABLE_-8)
  23. ori $gp, $gp, lo12(_GLOBAL_OFFSET_TABLE_-4)
  24. mfusr $ta, $pc
  25. add $gp, $ta, $gp
  26. addi $sp, $sp, -4
  27. addi $fp, $sp, 8
  28. ! end of prologue
  29. #APP
  30. .align 2
  31. .section .fini
  32. .align 2
  33. .globl _fini
  34. .type _fini, @function
  35. _fini:
  36. .LFB29:
  37. ! Generate instructions for ABI: 2
  38. ! pretend args size: 0, auto vars size: 0, pushed regs size: 12, outgoing args size: 0
  39. ! frame pointer: $fp, needed: yes
  40. ! $fp $gp $lp
  41. ! prologue
  42. .off_16bit
  43. smw.adm $sp,[$sp],$sp,#0x8
  44. smw.adm $sp,[$sp],$sp,#0x6
  45. .restore_16bit
  46. sethi $gp, hi20(_GLOBAL_OFFSET_TABLE_-8)
  47. ori $gp, $gp, lo12(_GLOBAL_OFFSET_TABLE_-4)
  48. mfusr $ta, $pc
  49. add $gp, $ta, $gp
  50. addi $sp, $sp, -4
  51. addi $fp, $sp, 8
  52. ! end of prologue
  53. #APP
  54. .align 2
  55. .ident "GCC: (GNU) 3.4.4"