Why Code Segment Contents May Begin at Offset 16Last reviewed: July 17, 1997Article ID: Q84734 |
3.x 4.0x 4.10 5.0x 5.1x 5.20 5.3x 5.50 5.60 | 5.0x 5.10 5.11 5.13 5.15
MS-DOS | OS/2kbtool The information in this article applies to:
SUMMARYMicrosoft LINK inserts 16 null bytes at the beginning of the _TEXT segment if the following conditions are true:
MORE INFORMATIONLINK inserts 16 null bytes at the beginning of the _TEXT segment to provide support for the signal() function; 16 bytes provide space for its flags. In DOSSEG ordering, segments appear in the file in the following order:
In an application developed with the Microsoft Macro Assembler (MASM), the .MODEL directive requests DOSSEG statement ordering. However, LINK places 16 null bytes at the beginning of the _TEXT segment only if either the source code contains the .DOSSEG directive or if the LINK command line includes the /DOSSEG option. The /NONULLSDOSSEG option instructs LINK to place segments into the DOSSEG ordering and to suppress generating the 16 null bytes at the beginning of the _TEXT segment.
|
Additional reference words: kbinf 3.65 3.69 4.06 4.10 5.01.20 5.01.21 5.02
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |