난 정말 최고야 멋있어
call $+5 의 의미 본문
가끔 이상한 어셈들을 보면
call $+5
pop reg
어쩌고 저쩌고 하는 코드들이 있다.
call 의 크기가 5바이트일때 call $+5의 이후 스택 최상단에는 다음 명령어에 해당하는 주소값이 들어가게 되고
그에 따라 어디서 호출되는 동일한 위치를 참조 할 수 있게 된다 (PIC)
What is the reason for this method to call itself?
While reversing a 32bit Mach-O binary with Hopper, I noticed this peculiar method. The instruction on 0x0000e506 seems to be calling an address right below the instruction. What would be the reas...
reverseengineering.stackexchange.com