Use /LINENUMBERS to include source-file line numbers and associated addresses in the map file. For this option to take effect, there must already be line-number information in the object files that you are linking.
| /LINENUMBERS option syntax |
|---|
|
Default is: /NOLINENUMBERS
Abbreviations are: /L|/NOLI
When you compile, use the cob2 option -qNUMBER to include line numbers in the object file (or the cob2 option -g to include all debugging information).
If you provide the linker an object file that does not have line-number information, the /LINENUMBERS option has no effect.
The /LINENUMBERS option forces the linker to create a map file even if you specify /NOMAP.
By default, the map file is given the same name as the output file, with the extension .map. You can override the default name by specifying a map-file name.