ID Number: Q72480
5.10 5.10a | 5.10 5.10a
MS-DOS | OS/2
buglist5.10 buglist5.10a fixlist6.00
Summary:
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
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.
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.
More Information:
The sample code below demonstrates this problem. While MASM 5.1 and
5.1a will correctly assemble the code, the object file created will
cause the following error when linked:
error L2013: LIDATA record too large pos: 29E Record type: A2
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.
For more information on the LIDATA record, or any other object module
record, see the "MS-DOS Encyclopedia."
Sample Code
-----------
;Assemble options needed: none
s struc
fld000 db 10 dup ( ' ' )
fld001 db 10 dup ( ' ' )
fld002 db 10 dup ( ' ' )
fld003 db 10 dup ( ' ' )
fld004 db 10 dup ( ' ' )
fld005 db 10 dup ( ' ' )
fld006 db 10 dup ( ' ' )
fld007 db 10 dup ( ' ' )
fld008 db 10 dup ( ' ' )
fld009 db 10 dup ( ' ' )
fld010 db 10 dup ( ' ' )
fld011 db 10 dup ( ' ' )
fld012 db 10 dup ( ' ' )
fld013 db 10 dup ( ' ' )
fld014 db 10 dup ( ' ' )
fld015 db 10 dup ( ' ' )
fld016 db 10 dup ( ' ' )
fld017 db 10 dup ( ' ' )
fld018 db 10 dup ( ' ' )
fld019 db 10 dup ( ' ' )
fld020 db 10 dup ( ' ' )
fld021 db 10 dup ( ' ' )
fld022 db 10 dup ( ' ' )
fld023 db 10 dup ( ' ' )
fld024 db 10 dup ( ' ' )
fld025 db 10 dup ( ' ' )
fld026 db 10 dup ( ' ' )
fld027 db 10 dup ( ' ' )
fld028 db 10 dup ( ' ' )
fld029 db 10 dup ( ' ' )
fld030 db 10 dup ( ' ' )
fld031 db 10 dup ( ' ' )
fld032 db 10 dup ( ' ' )
fld033 db 10 dup ( ' ' )
fld034 db 10 dup ( ' ' )
fld035 db 10 dup ( ' ' )
fld036 db 10 dup ( ' ' )
fld037 db 10 dup ( ' ' )
fld038 db 10 dup ( ' ' )
fld039 db 10 dup ( ' ' )
fld040 db 10 dup ( ' ' )
fld041 db 10 dup ( ' ' )
fld042 db 10 dup ( ' ' )
fld043 db 10 dup ( ' ' )
fld044 db 10 dup ( ' ' )
fld045 db 10 dup ( ' ' )
fld046 db 10 dup ( ' ' )
fld047 db 10 dup ( ' ' )
fld048 db 10 dup ( ' ' )
fld049 db 10 dup ( ' ' )
fld050 db 10 dup ( ' ' )
fld051 db 10 dup ( ' ' )
fld052 db 10 dup ( ' ' )
fld053 db 10 dup ( ' ' )
fld054 db 10 dup ( ' ' )
fld055 db 10 dup ( ' ' )
fld056 db 10 dup ( ' ' )
fld057 db 10 dup ( ' ' )
fld058 db 10 dup ( ' ' )
fld059 db 10 dup ( ' ' )
s ends
_TEXT segment word public 'CODE'
main proc far
main endp
_TEXT ends
_DATA segment word public 'DATA'
sinst s <>
_DATA ends
end