Advertisement
konalisp

Untitled

Nov 15th, 2014
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;;;;;;;;;;;;;;;;;;;;;;; crti.asm
  2. .intel_syntax noprefix
  3.  
  4. .section .init
  5. .global _init
  6. .type _init, @function
  7. _init:
  8. push rbp
  9. mov rbp, rsp
  10.  
  11. /* gcc will nicely put the contents of crtbegin.o's .init section here. */
  12.  
  13. .section .fini
  14. .global _fini
  15. .type _fini, @function
  16. _fini:
  17. push rbp
  18. mov rbp, rsp
  19.  
  20. /* gcc will nicely put the contents of crtbegin.o's .fini section here. */
  21.  
  22. ;;;;;;;;;;;;;;;;;;;;;;; crtn.asm
  23. .intel_syntax noprefix
  24.  
  25. .section .init
  26.     /* gcc will nicely put the contents of crtend.o's .init section here. */
  27.  
  28.     pop rbp
  29.     ret
  30.  
  31. .section .fini
  32.     /* gcc will nicely put the contents of crtend.o's .fini section here. */
  33.  
  34.     pop rbp
  35.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement