Export (0) Print
Expand All
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

/hotpatch (Create Hotpatchable Image)

Prepares an image for hotpatching. For more information on hotpatching, see http://www.microsoft.com/technet/security/topics/patch/patchmanagement.mspx.


/hotpatch

When /hotpatch is used in a compilation, the compiler ensures that first instruction of each function is two bytes, which is required for hot patching.

After compiling with /hotpatch, you must link with /FUNCTIONPADMIN (Create Hotpatchable Image), which completes the preparation for making an image hotpatchable. When you compile and link an image with a single invocation of cl.exe, /hotpatch implies /functionpadmin.

When building an image that will run on one of the chips in the Itanium Processor Family (IPF), it is not necessary to use /hotpatch, however you should use /functionpadmin on images built for IPF.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Click the C/C++ folder.

  3. Click the Command Line property page.

  4. Type the compiler option in the Additional Options box.

To set this compiler option programmatically

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.