我们如何使用objdump实用程序和分解代码知道VTABLE(即对应的vptr)的地址。 vptr通常存储在对象的第一个字节中(正确/编辑这个)。 有使用虚拟函数这个简单的代码: class base
{
public:
int x;
virtual void func()
{
//test function
}
};
class
与How do I disassemble raw x86 code?类似,但是对于MIPS体系结构:如何拆分原始MIPS代码与objdump?我要检查在vmlinux的图像的指令,但是这样做,我现在必须: : > x.c
mipsel-linux-gnu-gcc -c -o x.o x.c
mipsel-linux-gnu-objcopy --add-section raw=vmlinux