The mapfile field is used to specify a filename for the map file or to suppress the creation of a map file. A map file lists the segments in the executable file or DLL.
You can specify a path with the filename. The default extension is .MAP. Specify NUL to suppress the creation of a map file. The default for the mapfile field is one of the following:
If this field is left blank on the command line or in a response file, LINK creates a map file with the base name of the exefile (or the first object file if no exefile is specified) and the extension .MAP. If the field contains a dot (.), the map file is given the base name without an extension.
When using LINK prompts, LINK assumes either the default described previously (if an empty mapfile field is specified) or NUL.MAP, which suppresses creation of a map file.
To add line numbers to the map file, use the /LINE option. To add public symbols and other information, use the /MAP option. Both /LINE and /MAP force a map file to be created unless NUL is explicitly specified in mapfile.