做这件事的办法之一是对jfs_mount . o文件使用objdump实用程序,然后查看偏移地址3c。
One way you can do this is to use the objdump utility on the jfs_mount.o file and look at offset 3c.
当然,在我们的源文件里,偏移量是作为初始地址给出的。
And of course the offset is given as the original address in our source file.
文件偏移和内存地址是不容易的相关。
RVA是将某一项加载到内存之后的地址,减去镜像文件的基地址得到的值(也就是从文件加载到内存之后的基地址开始的偏移量)。
An RVA is the address of an item once loaded into memory, with the base address of the image file subtracted from it (i. e., the offset from the base address where the file is loaded).
RVA是将某一项加载到内存之后的地址,减去镜像文件的基地址得到的值(也就是从文件加载到内存之后的基地址开始的偏移量)。
An RVA is the address of an item once loaded into memory, with the base address of the image file subtracted from it (i. e., the offset from the base address where the file is loaded).
应用推荐