【发布时间】:2021-08-04 14:48:52
【问题描述】:
有一个编译文件(exe),例如对于这样一个简单的 c++ 程序:
#include <stdio.h>
void my_int_func(int x) {
printf("%d\n", x);
}
int main() {
void (*foo)(int);
foo = &my_int_func;
foo(78);
return 0;
}
函数偏移量始终是固定的并写入PE 对吗?我之所以这么问,是因为我有一些 3-rd 方程序可以在一些 exe 文件上运行,并将函数偏移量用作常量、固定值。
谢谢帮助。
【问题讨论】:
标签: windows exe executable portable-executable