flat assembler
Message board for the users of flat assembler.

Index > Main > obj file with fasm

Author
Thread Post new topic Reply to topic
emil



Joined: 16 Dec 2003
Posts: 76
Location: egypt
emil 13 Feb 2015, 11:13
Hi all,

does fasm can include obj file so that , it will linked with fasm output exe file.

BTW i did not want to use external linker .

thanks.
Post 13 Feb 2015, 11:13
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20526
Location: In your JS exploiting you and your system
revolution 13 Feb 2015, 11:15
fasm is not a linker. fasm does not understand .obj file formats.
Post 13 Feb 2015, 11:15
View user's profile Send private message Visit poster's website Reply with quote
emil



Joined: 16 Dec 2003
Posts: 76
Location: egypt
emil 13 Feb 2015, 11:55
thanks revolution,

i already know that Fasm is not a linker , but it can produce a standalone
exe.

what i was mean , if it has a way top link obj file , may be by using macro?
Post 13 Feb 2015, 11:55
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20526
Location: In your JS exploiting you and your system
revolution 13 Feb 2015, 12:13
emil wrote:
what i was mean , if it has a way top link obj file , may be by using macro?
Sure, I guess a macro could do it. But currently it appears that no one has written such a macro (or has not made it public) so as it stands now you would need to write your own.
Code:
macro link objfile {
  virtual at 0
    theobj:: file objfile
  end virtual
  ;linker code goes here
  ;...
}

format ...

mov eax,0x12345678
invoke DoWhatIWantWhenIWant,eax
invoke ExitProcess,0x87654321

link 'MyUberObj.obj'    
Post 13 Feb 2015, 12:13
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.