Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Difference Between RVA and VA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Thu Mar 12, 2015 8:38 am    Post subject: Difference Between RVA and VA Reply with quote

Just a general question:
What are the RVA and VA addresses?
And what is the difference between them?

For example:
"CandyLand.exe+1234"
It's equal to:
"VA+1234"
?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Mar 12, 2015 2:49 pm    Post subject: Reply with quote

Full definitions as defined by Microsoft whom makes the PE file format:

RVA (Relative Virtual Address)
Quote:
Relative Virtual Address. In an image file, an RVA is always the
address of an item once loaded into memory, with the base
address of the image file subtracted from it. The RVA of an item
will almost always differ from its position within the file on disk (File
Pointer).
In an object file, an RVA is less meaningful because memory
locations are not assigned. In this case, an RVA would be an
address within a section (see below), to which a relocation is later
applied during linking. For simplicity, compilers should just set the
first RVA in each section to zero.


VA (Virtual Address)
Quote:
Same as RVA (see above), except that the base address of the
image file is not subtracted. The address is called a “Virtual
Address” because Windows NT creates a distinct virtual address
space for each process, independent of physical memory. For
almost all purposes, a virtual address should be considered just an
address. A virtual address is not as predictable as an RVA,
because the loader might not load the image at its preferred
location.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Thu Mar 12, 2015 7:08 pm    Post subject: Reply with quote

@atom0s Thanks you! It helped me understand it..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites