The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Vortex on December 11, 2007, 08:24:16 PM

Title: MS COFF Object file to module definition file converter
Post by: Vortex on December 11, 2007, 08:24:16 PM
objdef is designed to create module definition files from MS COFF object modules.

The tool reads the code section of an object file and extracts the exported functions to
create module definition files.

Usage    : obj2def objectfile.obj [optional -d]
Optional : -d, output decorated symbols


To exclude any function, you can declare it as PRIVATE :

StrLen PROC PRIVATE item:DWORD ; this function is not exported

In C modules, the keyword static can be used to mark a function as private :

static int WINAPI func(int a, int b)
{
return 2*a+b; /* This function is not exported */
}

DLLs created with C compilers have entry points located in the C run-time
startup modules. To exclude the entry point in the source code :

obj2def DllDemo.obj@_DllMain@12

The entry point typed in the decorated form is specified following the @ separator symbol.

The optional -d switch can be used to output module definition files with decorated symbols.
This type of module definition file is created according to Pelles notation system.

http://vortex.masmcode.com/files/obj2def10.zip
Title: Re: MS COFF Object file to module definition file converter
Post by: Vortex on December 21, 2007, 06:48:14 PM
- Fixed a bug with handling files without extension :

http://vortex.masmcode.com/files/obj2def101.zip