/FUNCTIONPADMIN (Create Hotpatchable Image)

Prepares an image for hotpatching.

Syntax

/FUNCTIONPADMIN[:space]

Arguments

space
The amount of padding to add to the beginning of each function in bytes. On x86 this defaults to 5 bytes of padding and on x64 this defaults to 6 bytes. On other targets a value must be provided.

Remarks

In order for the linker to produce a hotpatchable image, the .obj files must have been compiled with /hotpatch (Create Hotpatchable Image).

When you compile and link an image with a single invocation of cl.exe, /hotpatch implies /functionpadmin.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Select the Configuration Properties > Linker > Command Line property page.

  3. Enter the /FUNCTIONPADMIN option in Additional Options. Choose OK to save your changes.

To set this linker option programmatically

See also

Setting Linker Options
Linker Options