/NOFUNCTIONPADSECTION (Disable function padding)
Disables function padding for functions in the specified section.
Syntax
/NOFUNCTIONPADSECTION:[name]
Arguments
name
The name of the section to disable x64 function padding in.
Remarks
You can instruct the linker to put a specified minimum number of bytes between functions with /FUNCTIONPADMIN
(Create hotpatchable image) and /ARM64XFUNCTIONPADMINX64
. This flag disables adding that padding for the specified sections.
To exclude multiple sections, specify the switch multiple times.
This flag is available starting with in Visual Studio 17.8 and later.
To set this linker option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
- Select the Configuration Properties > Linker > Command Line property page.
- Modify the Additional Options property to include /NOFUNCTIONPADSECTION:
name
, wherename
is the name of the section to disable x64 function padding in, and then choose OK.
To set this linker option programmatically
- See AdditionalOptions.