VA (Virtual Address) & RVA (Relative Virtual Address)

前端 未结 2 1238
我在风中等你
我在风中等你 2020-11-28 01:39

A file that is given as input to the linker is called Object File. The linker produces an Image file, which in turn is us

2条回答
  •  醉酒成梦
    2020-11-28 02:18

    A relative virtual address is an offset from the address at which the file is loaded. Probably the simplest way to get the idea is with an example. Assume you have a file (e.g., a DLL) that's loaded at address 1000h. In that file, you have a variable at RVA 200h. In that case, the VA of that variable (after the DLL is mapped to memory) is 1200h (i.e. the 1000h base address of the DLL plus the 200h RVA (offset) to the variable.

提交回复
热议问题