KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q35155: L2001 Fixups without Data

Article: Q35155
Product(s): See article
Version(s): 3.65 5.01.21 | 5.01.21
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 12-OCT-1988

The Link Utility can generate the linker error message L2001:
fixup(s) without data. In the manual, the linker error is described
as follows:

A FIXUPP record occurred without a data record immediately
preceding it. This is probably a compiler error. (See
the "Microsoft MS-DOS Programmer's Reference" for more information
on FIXUPP.

In most cases, the error message is generated from an
assembly-language program that doesn't make sense from the linker's
point of view, but is convenient for users. The following is an
example:

    extrn   foo:word

    ABSEG   segment at 123          ; absolute segment

    dw      offset DGROUP:foo       ; offset portion of address of "foo"

    ABSEG   ends

This tells the linker to fix up a location in ABSEG with the address
of foo. But ABSEG is an absolute segment and has no data to be fixed
up.

Another example is when you include the same STRUC definitions in both
absolute and non-absolute segments, so that the STRUC definitions
contain relocatable addresses.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.