News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MS COFF Directive section creator

Started by Vortex, March 07, 2007, 08:40:18 PM

Previous topic - Next topic

Vortex

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

Vortex

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]

Vortex

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]

Vortex

Same demo built with Polink. No module definition file.

[attachment deleted by admin]