Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;--crti.asm
- section .init
- global _init
- _init:
- push rbp ;rbp is 64-bit only
- mov rbp, rsp
- ;push ebp ;eba is 32-bit only
- ;mov ebp, esp
- section .fini
- global _fini
- _fini:
- push rbp ;rbp is 64-bit only
- mov rbp, rsp
- ;push ebp ;eba is 32-bit only
- ;mov ebp, esp
- ;;--crtn.asm
- section .init
- pop rbp ;rbp is 64-bit only
- ;pop ebp ;ebp is 32-bit only
- ret
- section .fini
- pop rbp ;rbp is 64-bit only
- ;pop ebp ;ebp is 32-bit only
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement