-
함수 호출시에 rax가 zeroed되는 이유ETC/Pwn 메모장 2020. 1. 12. 20:22
https://stackoverflow.com/questions/6212665/why-is-eax-zeroed-before-a-call-to-printf
Why is %eax zeroed before a call to printf?
I am trying to pick up a little x86. I am compiling on a 64bit mac with gcc -S -O0. Code in C: printf("%d", 1); Output: movl $1, %esi leaq LC0(%rip), %rdi movl $0, %eax ; WHY? c...
stackoverflow.com
'ETC > Pwn 메모장' 카테고리의 다른 글
seccomp 문제 만들때 (0) 2020.11.15 32bit shellcode (0) 2020.02.08 fsb인지 gdb로 확인하기 (0) 2020.01.05 peda 정리 (0) 2019.12.27 Sigreturn ROP에서 드는 생각 (0) 2019.08.07