crtn.S 620 B

123456789101112131415161718192021222324252627282930313233
  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. .section .fini
  18. .global _fini
  19. .type _fini, %function
  20. #if defined __thumb__
  21. .align 1
  22. .thumb
  23. pop {r4-r7, pc}
  24. #else
  25. .align 2
  26. .arm
  27. ldmdb fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
  28. #endif
  29. @ In fact this is modified to 3.4.4
  30. .ident "GCC: (GNU) 3.3.2 20031005 (Debian prerelease)"