Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.86 KB

cetcompat.md

File metadata and controls

42 lines (25 loc) · 1.86 KB
title ms.date f1_keywords helpviewer_keywords
/CETCOMPAT (CET Shadow Stack compatible)
02/19/2019
/CETCOMPAT
/CETCOMPAT linker option
/CETCOMPAT

/CETCOMPAT (CET Shadow Stack compatible)

Specifies whether to mark an executable image as compatible with Control-flow Enforcement Technology (CET) Shadow Stack.

Syntax

/CETCOMPAT[:NO]

Arguments

NO
Specifies that the executable should not be marked compatible with CET Shadow Stack.

Remarks

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.

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.

The /CETCOMPAT option is available beginning in the Visual Studio 2019 Preview 3 toolset.

To set the /CETCOMPAT linker option in Visual Studio

  1. Open the Property Pages dialog box for the project. For more information, see Working with Project Properties.

  2. Select the Configuration Properties > Linker > Command Line property page.

  3. In the Additional options box, add /CETCOMPAT or /CETCOMPAT:NO and then choose OK or Apply to save your changes.

To set this linker option programmatically

This option does not have a programmatic equivalent.

See also

Linker Options