flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [solved] fasmg - bug in relocations

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 08 Dec 2017, 21:13
fasmg - bug in relocations:
Code:
include 'format/format.inc'

PE.Settings.SectionAlignment    = 16
PE.Settings.FileAlignment       = 16

format  PE console
entry start

section '.text' code readable executable

start:
repeat 1024
        mov     edx,$
end repeat

section '.reloc' fixups data readable discardable
    

tdump.exe reports:
Code:
Block #1: Page RVA = 31D631D1, block size = 31E031DB
  PTR 1e5  PTR 1ea  PTR 1ef  PTR 1f4  PTR 1f9  PTR 1fe  PTR 203 ...
    
Post 08 Dec 2017, 21:13
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 08 Dec 2017, 21:34
Please try with the updated macro.
Post 08 Dec 2017, 21:34
View user's profile Send private message Visit poster's website Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 09 Dec 2017, 12:52
It is now all right, thanks.
Post 09 Dec 2017, 12:52
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.