flat assembler
Message board for the users of flat assembler.

Index > Windows > how to get RVA or VA of sections

Author
Thread Post new topic Reply to topic
marcinzabrze12



Joined: 07 Aug 2011
Posts: 60
marcinzabrze12
Code:
section '.text' code readable executable
start:
           lea    eax, [.text] ; doesn't work
           mov  eax, .text  ; "undefined symbol   start.text"
    
Post 27 Nov 2011, 18:06
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7802
Location: Kraków, Poland
Tomasz Grysztar
Code:
section '.text' code readable executable
start:

           mov  eax, $$         ; VA
           mov  ebx, RVA $$     ; RVA    
Post 27 Nov 2011, 18:56
View user's profile Send private message Visit poster's website Reply with quote
marcinzabrze12



Joined: 07 Aug 2011
Posts: 60
marcinzabrze12
thanks a lot Tomasz. I just forgot about $$.
Post 27 Nov 2011, 21:12
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.