LINUX - 寄存器和堆栈

堆栈模型:

函数调用:

 

EBP:ESP

EBP当前调用函数的栈底;

ESP当前调用函数的栈顶;

 

------------------------------------------------------------------------分析目标文件的指令 ------------------------------------------------------------------------

objdump -h main.o

readelf  -h main.o

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

参考及图:
 https://blog.csdn.net/hoi0714/article/details/7658100

 

https://www.cnblogs.com/dongzhiquan/p/7828667.html

posted @ 2019-08-03 11:44  chiwin  阅读(595)  评论(0编辑  收藏  举报