FIX: MASM 5.1/5.1a .OBJ May Cause LINK to Generate L2013 Error (72480)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
This article was previously published under Q72480 SYMPTOMS
The Microsoft Macro Assembler (MASM) versions 5.1 and 5.1a may create an
object file that cannot be linked properly with LINK because of an LIDATA
record that is too large for LINK to handle. In this case, the following
LINK error will be generated:
error L2013: LIDATA record too large
CAUSE
The problem results from the fact that MASM may generate an LIDATA record
up to 1K in size, which is valid for LIDATA records in the Intel Object
Module Format, but LINK will only accept LIDATA records that are 512 bytes
or less. There is nothing actually wrong with the code generated by MASM
except for the fact that it may contain an object module record that
exceeds a documented limitation of LINK.
RESOLUTION
In MASM version 6.0, the assembler automatically corrects for this
situation by creating multiple LIDATA records as necessary so that none
exceed 512 bytes.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 5.1 and 5.1a.
This problem was corrected in MASM version 6.0.
Modification Type: | Major | Last Reviewed: | 10/22/2003 |
---|
Keywords: | kbfix KB72480 |
---|
|