flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tyler 12 Jun 2010, 05:25
The definition:("rva" is also mentioned in the COFF and ELF sections of the manual)
2.4.2 Portable Executable wrote:
I wish I could explain it, but I don't know what an RVA is. |
|||
![]() |
|
vid 12 Jun 2010, 11:13
RVA only makes sense in context of PE file (and is used for similar purpose in ELF shared library IIRC). Not in pure binary.
What you want is called "inline macro", and FASM doesn't support it. Search forum for more info. |
|||
![]() |
|
mindcooler 12 Jun 2010, 13:43
vid wrote: RVA only makes sense in context of PE file (and is used for similar purpose in ELF shared library IIRC). Not in pure binary. Well, it IS in the context of a PE file. A pure binary one. Quote:
So I'd have to do like this to achieve desired effect? Code: macro dwrva address { dw address-imgbase } macro ddrva address { dd address-imgbase } macro orgup n,level { org (((n+(level-1))/level)*level) } _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
vid 13 Jun 2010, 21:22
Quote: So I'd have to do like this to achieve desired effect? Basically, yes. However, it might be easier for typing & maintenace to overload every data directive using some form of "irp" with a common macro that checks for pseudo-operator (probably not "rva", as it is an existing operator already). Sorry, no time to write one right now. |
|||
![]() |
|
mindcooler 13 Jun 2010, 21:25
Either that, or I can type somethingsomething-imgbase at a few places
![]() |
|||
![]() |
|
baldr 13 Jun 2010, 21:54
mindcooler,
If you like to stick with rva name syntax, rva equ -imgbase+ can be useful. |
|||
![]() |
|
mindcooler 14 Jun 2010, 02:14
baldr wrote: mindcooler, That's nice, perhaps I'll go with such a solution. _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.