Skip to content

Commit a0fdbba

Browse files
manbearianColin Robertson
authored andcommitted
Remove Itanium refernces from functionpadmin-create-hotpatchable-image.md (MicrosoftDocs#185)
* Update functionpadmin-create-hotpatchable-image.md removing Itanium references. I sent mail to YongKang Zhu to verify that this update is okay (Collin you're on the thread) * Update functionpadmin-create-hotpatchable-image.md * Update functionpadmin-create-hotpatchable-image.md Improve clarity of new text * Update functionpadmin-create-hotpatchable-image.md Edit to current markdown lint standard.
1 parent 5bf840b commit a0fdbba

File tree

1 file changed

+36
-43
lines changed

1 file changed

+36
-43
lines changed
Lines changed: 36 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,50 @@
11
---
2-
title: "-FUNCTIONPADMIN (Create Hotpatchable Image) | Microsoft Docs"
2+
title: "/FUNCTIONPADMIN (Create Hotpatchable Image) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
5-
ms.reviewer: ""
6-
ms.suite: ""
4+
ms.date: "03/09/2018"
75
ms.technology: ["cpp-tools"]
8-
ms.tgt_pltfrm: ""
96
ms.topic: "article"
107
f1_keywords: ["/functionpadmin"]
118
dev_langs: ["C++"]
129
helpviewer_keywords: ["-FUNCTIONPADMIN linker option", "/FUNCTIONPADMIN linker option"]
1310
ms.assetid: 25b02c13-1add-4fbd-add9-fcb30eb2cae7
14-
caps.latest.revision: 11
1511
author: "corob-msft"
1612
ms.author: "corob"
1713
manager: "ghogen"
1814
ms.workload: ["cplusplus"]
1915
---
2016
# /FUNCTIONPADMIN (Create Hotpatchable Image)
21-
Prepares an image for hotpatching.
22-
23-
## Syntax
24-
25-
```
26-
/FUNCTIONPADMIN[:space]
27-
```
28-
29-
## Remarks
30-
where,
31-
32-
`space` (optional)
33-
The amount of padding to add to the beginning of each function, 5, 6, or 16. x86 images require five bytes of padding, x64 images require 6 bytes, and images built for the Itanium Processor Family require 16 bytes of padding at the beginning of each function.
34-
35-
By default, the compiler will add the correct amount of space to the image, based on the machine type of the image.
36-
37-
In order for the linker to produce a hotpatchable image, the .obj files must have been compiled with [/hotpatch (Create Hotpatchable Image)](../../build/reference/hotpatch-create-hotpatchable-image.md).
38-
39-
When you compile and link an image with a single invocation of cl.exe, **/hotpatch** implies **/functionpadmin**.
40-
41-
### To set this linker option in the Visual Studio development environment
42-
43-
1. Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../../ide/working-with-project-properties.md).
44-
45-
2. Click the **Linker** folder.
46-
47-
3. Click the **Command Line** property page.
48-
49-
4. Type the option into the **Additional Options** box.
50-
51-
### To set this linker option programmatically
52-
53-
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A>.
54-
55-
## See Also
56-
[Setting Linker Options](../../build/reference/setting-linker-options.md)
57-
[Linker Options](../../build/reference/linker-options.md)
17+
18+
Prepares an image for hotpatching.
19+
20+
## Syntax
21+
22+
> **/FUNCTIONPADMIN**[**:**_space_]
23+
24+
### Arguments
25+
26+
*space*<br/>
27+
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.
28+
29+
## Remarks
30+
31+
In order for the linker to produce a hotpatchable image, the .obj files must have been compiled with [/hotpatch (Create Hotpatchable Image)](../../build/reference/hotpatch-create-hotpatchable-image.md).
32+
33+
When you compile and link an image with a single invocation of cl.exe, **/hotpatch** implies **/functionpadmin**.
34+
35+
### To set this linker option in the Visual Studio development environment
36+
37+
1. Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../../ide/working-with-project-properties.md).
38+
39+
1. Select the **Configuration Properties** > **Linker** > **Command Line** property page.
40+
41+
1. Enter the **/FUNCTIONPADMIN** option in **Additional Options**. Choose **OK** to save your changes.
42+
43+
### To set this linker option programmatically
44+
45+
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A>.
46+
47+
## See also
48+
49+
[Setting Linker Options](../../build/reference/setting-linker-options.md)<br/>
50+
[Linker Options](../../build/reference/linker-options.md)

0 commit comments

Comments
 (0)