Skip to content

Commit e087fc7

Browse files
authored
/hotpatch: No jump to the first instruction
1 parent 72d1cd3 commit e087fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/build/reference/hotpatch-create-hotpatchable-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: /hotpatch (Create Hotpatchable Image)"
33
title: "/hotpatch (Create Hotpatchable Image)"
4-
ms.date: "11/12/2018"
4+
ms.date: "12/7/2021"
55
f1_keywords: ["/hotpatch", "VC.Project.VCCLCompilerTool.CreateHotpatchableImage"]
66
helpviewer_keywords: ["hot patching", "-hotpatch compiler option [C++]", "/hotpatch compiler option [C++]", "hotpatching"]
77
ms.assetid: aad539b6-c053-4c78-8682-853d98327798
@@ -18,7 +18,7 @@ Prepares an image for hot patching.
1818

1919
## Remarks
2020

21-
When **/hotpatch** is used in a compilation, the compiler ensures that first instruction of each function is at least two bytes, which is required for hot patching.
21+
When **/hotpatch** is used in a compilation, the compiler ensures that first instruction of each function is at least two bytes, and there's no jump to the first instruction from within the function, which is required for hot patching.
2222

2323
To complete the preparation for making an image hotpatchable, after you use **/hotpatch** to compile, you must use [/FUNCTIONPADMIN (Create Hotpatchable Image)](functionpadmin-create-hotpatchable-image.md) to link. When you compile and link an image by using one invocation of cl.exe, **/hotpatch** implies **/functionpadmin**.
2424

0 commit comments

Comments
 (0)