flat assembler
Message board for the users of flat assembler.

Index > Windows > MS COFF comments

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Jul 2010, 14:50
Is it possible to add "comment" to MS COFF file in FASM? This comes handy when you want to create "default library dependency", instead of having to specify every lib in command line.

In MSVC, you use following:
Code:
#pragma comment(linker, "/entry:main")
#pragma comment(lib, "kernel32")
    


I presume this is not yet possible in FASM. How hard would it be to add it?
Post 26 Jul 2010, 14:50
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20513
Location: In your JS exploiting you and your system
revolution 26 Jul 2010, 15:10
How do the comments get presented inside the .obj file? Is it a separate section (data xx/end data)? Maybe it can be emulated, like imports, with macros?
Post 26 Jul 2010, 15:10
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 26 Jul 2010, 15:20
Do you perhaps mean something like this:
http://board.flatassembler.net/topic.php?p=65983#65983
?
Post 26 Jul 2010, 15:20
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Jul 2010, 15:23
Yeah, that's it. Good job!

Sidenote: MSVC compiler sets align for .drectve section to 1, not 4. So technically for best compatibility with MSVC, one should also use "align 1". But I am not really sure if it matters anywhere.
Post 26 Jul 2010, 15:23
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.