flat assembler
Message board for the users of flat assembler.

Index > Windows > PE DLL at 80000000h RVA failure

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 28 Mar 2004, 07:14
Code:
format PE GUI 4.0 DLL at 80000000h

mov     eax,RVA $    


Gives "value out of range" on that rva statement.
It seems to fail for any imagebase around 7FFF0000h, the actual value varying depending where the rva statement is used relative to start of code. Seems FASM is overflowing on signed dwords?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 28 Mar 2004, 07:14
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 28 Mar 2004, 11:01
It's the bug caused by the fact, that during the calculations fasm extends all values to 64-bit, but while it uses sign-extension on the $ value, the code base value which is substracted from $ to get the RVA was zero-extended, and therefore the result was wrong, a large negative value that couldn't even fit in 32 bits. It's fixed in beta 1 of fasm 1.52.
Post 28 Mar 2004, 11:01
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.