Skip to content

Commit 78ebade

Browse files
author
Colin Robertson
authored
Merge pull request #3574 from AlexGuteniev/patch-1
`/hotpatch`: No jump to the first instruction
2 parents 1d6fb56 + 6f795df commit 78ebade

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 the first instruction of each function is at least two bytes, and no jump within the function goes to the first instruction. These conditions are 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)