编译器在函数首尾插入的汇编代码

情况一:(与安全相关的)

函数开始位置:


分配栈空间;取____security_cookie变量和esp异或,值存放到栈中l_SecurityCookie变量中。

函数结束位置:


取栈中l_SecurityCookie变量,和esp做异或操作;作为___security_check_cookie的参数,并调用___security_check_cookie。

___security_cookie变量、___security_check_cookie函数都是和编译器操作系统有关的,没有必要深入探究。

情况二:(fs寄存器)

暂空

猜你喜欢

转载自blog.csdn.net/singleyellow/article/details/80908051
今日推荐