crti.S 515 B

12345678910111213141516171819202122232425262728293031
  1. .section .init
  2. .global _init
  3. .type _init,%function
  4. _init:
  5. pushl %ebp
  6. movl %esp, %ebp
  7. pushl %ebx
  8. call __get_pc_thunk_bx
  9. addl $_GLOBAL_OFFSET_TABLE_, %ebx
  10. .section .fini
  11. .global _fini
  12. .type _fini,%function
  13. _fini:
  14. pushl %ebp
  15. movl %esp, %ebp
  16. pushl %ebx
  17. call __get_pc_thunk_bx
  18. addl $_GLOBAL_OFFSET_TABLE_, %ebx
  19. .section .gnu.linkonce.t.__get_pc_thunk_bx,"ax",@progbits
  20. .global __get_pc_thunk_bx
  21. .hidden __get_pc_thunk_bx
  22. .type __get_pc_thunk_bx,%function
  23. __get_pc_thunk_bx:
  24. movl (%esp), %ebx
  25. ret