Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile binary with CETCOMPAT #7

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
run: |
mkdir build32
cd build32
cmake -G "Visual Studio 16 2019" -A Win32 ..
cmake -G "Visual Studio 17 2022" -A Win32 ..
cmake --build . --config Release
- name: build64
run: |
mkdir build64
cd build64
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config Release
- name: upload artifacts for winchecksec-scan
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
run: |
mkdir build32
cd build32
cmake -G "Visual Studio 16 2019" -A Win32 ..
cmake -G "Visual Studio 17 2022" -A Win32 ..
cmake --build . --config Release
- name: build64
run: |
mkdir build64
cd build64
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config Release
- name: archive
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ target_link_options(pegoat-no-nxcompat PRIVATE "/NXCOMPAT:NO")
add_executable(pegoat-no-cetcompat goat.cpp)
target_link_options(pegoat-no-cetcompat PRIVATE "/CETCOMPAT:NO")

# An executable with Intel CET (hardware CFI) compatiblity.
add_executable(pegoat-cetcompat goat.cpp)
target_link_options(pegoat-cetcompat PRIVATE "/CETCOMPAT")

# An executable without control flow guards.
add_executable(pegoat-no-cfg goat.cpp)
target_compile_options(pegoat-no-cfg PRIVATE "/GUARD:NO")
Expand Down