You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,36 +10,46 @@ Specifies whether to mark an executable image as compatible with Control-flow En
10
10
11
11
## Syntax
12
12
13
-
> **/CETCOMPAT**\[**:NO**]
13
+
> **`/CETCOMPAT`**\
14
+
> **`/CETCOMPAT:NO`**
14
15
15
16
## Arguments
16
17
17
-
**NO**<br/>
18
-
Specifies that the executable should not be marked compatible with CET Shadow Stack.
18
+
**`NO`**<br/>
19
+
Specifies that the executable shouldn't be marked compatible with CET Shadow Stack.
19
20
20
21
## Remarks
21
22
22
-
Control-flow Enforcement Technology (CET) Shadow Stack is a computer processor feature that provides capabilities to defend against returnoriented programming (ROP) based malware attacks. For more information, see [Intel Control-flow Enforcement Technology Preview](https://software.intel.com/sites/default/files/managed/4d/2a/control-flow-enforcement-technology-preview.pdf).
23
+
Control-flow Enforcement Technology (CET) Shadow Stack is a computer processor feature that provides capabilities to defend against return-oriented programming (ROP) based malware attacks. For more information, see [Intel Control-flow Enforcement Technology Preview](https://software.intel.com/sites/default/files/managed/4d/2a/control-flow-enforcement-technology-preview.pdf).
23
24
24
-
The **/CETCOMPAT** linker option tells the linker to mark the binary as CET Shadow Stack-compatible. **/CETCOMPAT:NO** marks the binary as not compatible with CET Shadow Stack. If both options are specified on the command line, the last one specified is used. This switch is currently only applicable to x86 and x64 architectures.
25
+
The **`/CETCOMPAT`** linker option tells the linker to mark the binary as CET Shadow Stack-compatible. **`/CETCOMPAT:NO`** marks the binary as not compatible with CET Shadow Stack. If both options are specified on the command line, the last one specified is used. This switch is currently only applicable to x86 and x64 architectures.
25
26
26
-
The **/CETCOMPAT** option is available beginning in the Visual Studio 2019 Preview 3 toolset.
27
+
The **`/CETCOMPAT`** option is available beginning in Visual Studio 2019.
27
28
28
-
### To set the /CETCOMPAT linker option in Visual Studio
29
+
### To set the `/CETCOMPAT` linker option in Visual Studio
30
+
31
+
Starting in Visual Studio 2019 version 16.7:
29
32
30
33
1. Open the **Property Pages** dialog box for the project. For more information, see [Working with Project Properties](../working-with-project-properties.md).
1. Select the **CET Shadow Stack Compatible** property.
35
38
36
-
1. In the dropdown control, choose **Yes (/CETCOMPAT)** to enable EH continuation metadata, or **No (/CETCOMPAT:NO)** to disable it.
39
+
1. In the dropdown control, choose **`Yes (/CETCOMPAT)`** to enable EH continuation metadata, or **`No (/CETCOMPAT:NO)`** to disable it.
40
+
41
+
In previous versions of Visual Studio 2019:
42
+
43
+
1. Open the **Property Pages** dialog box for the project. For more information, see [Working with Project Properties](../working-with-project-properties.md).
0 commit comments