NO

Author Topic: Module definition file to MS COFF import library converter  (Read 3629 times)

Offline Vortex

  • Member
  • *
  • Posts: 802
    • http://www.vortex.masmcode.com
Module definition file to MS COFF import library converter
« on: April 18, 2010, 05:06:09 PM »
def2lib is a tool to create MS COFF import libraries from module definition files. The tool has also the capacity to generate libraries with undecorated function names.

Quote
Module definition file to MS COFF import library converter
Version 1.1 by Vortex

Usage    : def2lib deffile.def [optional]
Optional : -nod  no decoration in exported symbols

A typical def file should have the following format and all the symbols should be enclosed between double quotes:

kernel32.def

Code: [Select]
LIBRARY kernel32
EXPORTS
"_ActivateActCtx@8"
"_AddAtomA@4"
"_AddAtomW@4"
"_AddConsoleAliasA@12"

To create kernel32.lib from kernel32.def:

Code: [Select]
def2lib.exe kernel32.def
http://vortex.masmcode.com/files/def2lib11.zip
Code it... That's all...

Offline Vortex

  • Member
  • *
  • Posts: 802
    • http://www.vortex.masmcode.com
Re: Module definition file to MS COFF import library converter
« Reply #1 on: March 10, 2013, 11:07:31 AM »
Version 1.2 :

- Corrected timestamps in the IMAGE_ARCHIVE_MEMBER_HEADER and IMPORT_OBJECT_HEADER structures.

- Added the option -e to support archive member names with the .exe extension ( ntvdm.exe )

http://vortex.masmcode.com/files/def2lib12.zip
Code it... That's all...