# NTBIND: bind to Win32 format

NTBIND converts your GNU-C output file to the Win32 EXE format (aout to PE). The new LD.EXE file in RSXNT1.2x calls NTBIND after linking the object files to the AOUT format.

It does:

* Builds Win32 "PE" header

* Copies text and data sections to the Win32 file

* Collects import calls and writes import section

* Reads DEF-files and writes export section

* Converts GNU-C relocation to Win32 relocation's

Syntax:

    NTBIND aout-name [options]

Options:

-o name

the name of the EXE or DLL file

-d name

the name of the DLL definition file (export entries)

-s name

the name of the stub file (dosstub.dos or dosstub.rsx)

-strip

strip symbols from the output.

-print:

print most actions from NTBIND

By default NTBIND creates an output file with the same filename with the extensions "exe". The default DOS stubfile is "dosstub.dos". This file will be searched in the current directory or in the path environment. This file prints a message "This programs requires Win32" if you run it under DOS. If you build a console mode program and this program should also run under DOS you must define the DOS stubfile "dosstub.rsx".

Example:

    ntbind myfile.emx

This command creates the output file "myfile.exe".