crtn.S 664 B

1234567891011121314151617181920212223242526272829303132333435
  1. .file "initfini.c"
  2. #include <bits/arm_asm.h>
  3. .section .init
  4. .global _init
  5. .type _init, %function
  6. #if defined __thumb__
  7. .align 1
  8. .thumb
  9. @ this will not work on ARMv4T, but lots of stuff
  10. @ in here won't work there anyway...
  11. pop {r4-r7, pc}
  12. #else
  13. .align 2
  14. .arm
  15. ldmdb fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
  16. #endif
  17. .size _init, .-_init
  18. .section .fini
  19. .global _fini
  20. .type _fini, %function
  21. #if defined __thumb__
  22. .align 1
  23. .thumb
  24. pop {r4-r7, pc}
  25. #else
  26. .align 2
  27. .arm
  28. ldmdb fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
  29. #endif
  30. .size _fini, .-_fini
  31. @ In fact this is modified to 3.4.4
  32. .ident "GCC: (GNU) 3.3.2 20031005 (Debian prerelease)"