Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/100292

From BetaArchive Wiki

PRB: Data Section Names Limited to Eight Characters


The information in this article applies to:

  • Microsoft Win32 Software Development Kit (SDK), used with:
    • Windows NT versions 3.1, 3.5, 3.51, 4.0
    • Windows 95


You can use #pragma data_seg to name data sections. This method is commonly used so that the named data sections can be shared using the SECTIONS statement in the DEF file or with a linker switch (/SECTION:name,RWS). However, if the length of the name specified in the pragma exceeds eight characters, then the section might not be properly shared.


The linker does not support sections with longer names. The longer names require use of the COFF strings table, so the rewrite is not trivial.


Note that the first character of a section name may be a period so that it is consistent with compiler and linker defaults. (The period is not required.) If used, the section name (as specified in both the pragma and the DEF file) can be a maximum of a period followed by seven characters.

Additional query words:

Keywords :
Issue type : kbprb
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch

Last Reviewed: June 18, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.