LINUX - 寄存器和堆栈
堆栈模型:
函数调用:
EBP:ESP
EBP当前调用函数的栈底;
ESP当前调用函数的栈顶;
------------------------------------------------------------------------分析目标文件的指令 ------------------------------------------------------------------------
objdump -h main.o
readelf -h main.o
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
参考及图:
https://blog.csdn.net/hoi0714/article/details/7658100