push 1 call add add esp,0x0C //add(1, 2, 3) int add(int a, int b, int c) { int tmp = (a + b + c); return tmp; } 1. 參參數由右⾄至左推入堆疊中 2. 呼叫者負責清理理堆疊(stdcall)
Executable and Linkable Format (ELF, formerly named Extensible Linking Format), is a common standard file format for executable files, object code, shared libraries, and core dumps. In 1999, it was chosen as the standard binary file format for Unix and Unix-like systems on x86 processors by the 86open project. refer: en.wikipedia.org/wiki/Executable_and_Linkable_Format