The MASM Forum Archive 2004 to 2012

Project Support Forums => The GeneSys Development System => Topic started by: Vortex on March 07, 2007, 08:40:18 PM

Title: MS COFF Directive section creator
Post by: Vortex on March 07, 2007, 08:40:18 PM
makedirsect creates MS COFF object files with various linker directives to specify import
libraries, entry points and exported symbols. This tool intends to support Masm with .drectve sections
created externally.

The tool takes two parameters.The first determines the output object file and the
second parameter can specify linker directives or a response file. Multiple linker directives
should be enclosed between double quotes.

The object file created by makedirsect should be linked together with the other project object files to
build the final executable / DLL

Examples of usage :

makedirsect Directives.obj "-defaultlib:\GeneSys\lib\kernel32.lib -defaultlib:\GeneSys\lib\user32.lib"

Response files should be typed with a leading @ symbol.

makedirsect Directives.obj @Directives.txt

Directives.txt :

-export:variable
-export:teststring
-export:testfunc


http://vortex.masmcode.com/files/makedirsect10.zip
Title: Re: MS COFF Directive section creator
Post by: Vortex on March 09, 2007, 06:59:10 PM
Here is another example. This time, the object modules are linked with GoLink. The MS COFF directive section is created to specify the DLLs from which the main module imports API functions. GoLink does not require the usage of import libraries.

[attachment deleted by admin]
Title: Re: MS COFF Directive section creator
Post by: Vortex on October 25, 2007, 06:37:06 PM
Demo on how to create DLLs with GoLink supported by makedirsect.

The directive file :

-defaultlib:kernel32.dll
-defaultlib:user32.dll
-export:StrLen
-export:locate
-export:StdOut
-export:ClearScreen

[attachment deleted by admin]
Title: Re: MS COFF Directive section creator
Post by: Vortex on October 28, 2007, 11:09:10 AM
Same demo built with Polink. No module definition file.

[attachment deleted by admin]