flat assembler
Message board for the users of flat assembler.
Index
> Windows > Help with PEDEMO.ASM (section .idata) |
Author |
|
sleepsleep 12 Dec 2014, 19:16
Microsoft PE and COFF Specification
Updated: February 6, 2013 http://msdn.microsoft.com/en-us/windows/hardware/gg463119.aspx |
|||
12 Dec 2014, 19:16 |
|
AsmGuru62 12 Dec 2014, 23:13
Or maybe here, so you do not need to download the whole PE Format:
http://sandsprite.com/CodeStuff/Understanding_imports.html |
|||
12 Dec 2014, 23:13 |
|
uncle les 13 Dec 2014, 10:38
Thanks a lot guys!
Now I really feel that everything starts to make sense. The Microsoft documentation was actually quite clear, though a but terse. It has a whole chapter devoted to the .idata section which basically answers all my questions. Now I am just a bit confused about the RVA thing. I didn't quite get how those virtual addresses are generated by the OS. |
|||
13 Dec 2014, 10:38 |
|
baldr 13 Dec 2014, 22:46
uncle les,
They're relative to image base, i.e. entry point RVA 1000h corresponds to VA 401000h for module loaded at 400000h. |
|||
13 Dec 2014, 22:46 |
|
uncle les 14 Dec 2014, 16:00
Thanks baldr!
Your explanation was clear. I just realized that I still have one doubt regarding addresses: Is it so that in win32, each executable file, when launched, is stored in a virtual memory location, (usually 400000h) although it is physically stored at some "random" memory location, and not necessarily sequentially (the 4Gb flat memory model)? If am correct, then the RVA should be always given by: current virtual address-400000h, making the RVA-directive imposed by Microsoft completely useless and redundant...unless the virtual location 400000h can change...but, can it change? |
|||
14 Dec 2014, 16:00 |
|
revolution 14 Dec 2014, 16:21
uncle les wrote: If am correct, then the RVA should be always given by: current virtual address-400000h, making the RVA-directive imposed by Microsoft completely useless and redundant...unless the virtual location 400000h can change...but, can it change? |
|||
14 Dec 2014, 16:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.