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/102115

From BetaArchive Wiki

INF: LINK32 Implements New Switch: -adjust:#

PSS ID Number: Q102115 Article last modified on 12-23-1993

3.10 WINDOWS

The information in this article applies to:
- Microsoft Win32 Software Development Kit (SDK) for Windows NT version 3.1

SUMMARY

The version of LINK32 that is contained in the retail version of the Win32 Software Development Kit (SDK) implements a new switch, -adjust:#. Previous beta linkers had a hard-coded limit for the number of iterations that are performed to do end-of-page code adjustments. The number of iterations can now be adjusted with this switch.

MORE INFORMATION

This switch should be used when the following error is encountered: error 101: cannot adjust code Start with -adjust:20 and raise the number until the link is successful. This error has been known to occur when linking large objects under MIPS. The R4000 and R4400 chips force us check that certain sequences of instructions do not occur at a page boundary. These sequences cause the system to take a page fault on crossing the page boundary, which the OS cannot resolve (however, this is not a problem with Windows NT). To prevent this from happening, the linker searches for these sequences in each code section in each object and moves the section up a DWORD at a time until there are no problems or until the number of maximum iterations is reached.

Additional reference words: 3.10 KBCategory: KBSubcategory: Copyright Microsoft Corporation 1993.