FIX: L1101 Error Linking MASM Object Module w/ Large Structure (95121)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q95121 SYMPTOMS
An attempt to link an application assembled with the Microsoft Macro
Assembler (MASM) fails and the Microsoft Link utility (LINK) generates
the following message:
fatal error L1101: invalid object module
CAUSE
MASM generates an incorrect LIDATA record when the source code
declares large data structures.
RESOLUTION
To work around this problem, organize structure initialization into a
series of DUP directives, as shown below. If necessary, MASM processes
the structure into several LIDATA records.
msg_str STRUCT
msg BYTE 44 DUP(120), 10, 13
BYTE 44 DUP(111), 10, 13
BYTE 44 DUP(120), 10, 13
BYTE 44 DUP(111), 10, 13
BYTE 44 DUP(120), 10, 13
BYTE 44 DUP(111), 10, 13
BYTE 44 DUP(120), 10, 13
BYTE 44 DUP(111), 10, 13
BYTE 44 DUP(120), 10, 13
BYTE '$'
msg_str ENDS
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.0,
6.0a, 6.0b, 6.1, and 6.1a. This problem was corrected in MASM for
MS-DOS version 6.11.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbfix KB95121 |
---|
|