These records say which source lines the code came from. Debug information proper goes in Borland or CodeView data elsewhere; OMF itself has only these two records.
LINNUM (0x94, 0x95)
| Field | Size | Meaning |
|---|---|---|
| Base group | index | An index into the GRPDEFs, usually 0 |
| Base segment | index | An index into the SEGDEFs |
| Then repeated to the end of the record: | ||
| Line number | 2 | The source line |
| Offset | 2 or 4 | Where the line starts in the segment |
LINSYM (0xC4, 0xC5)
Line numbers for code in a COMDAT:
| Field | Size | Meaning |
|---|---|---|
| Flags | 1 | Bit 0: continuation of the COMDAT before |
| Public name | index | The COMDAT’s logical name |
| Then line number and offset pairs, as in LINNUM. | ||