[PATCH] D132810: [clang][MinGW] Add `-mguard=cf` and `-mguard=cf-nochecks`
Alvin Wong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 28 10:42:33 PDT 2022
alvinhochun created this revision.
Herald added a subscriber: mstorsjo.
Herald added a project: All.
alvinhochun published this revision for review.
alvinhochun added reviewers: rnk, ajpaverd, mstorsjo, aaron.ballman.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
This option can be used to enable Control Flow Guard checks and
generation of address-taken function table. They are equivalent to
`/guard:cf` and `/guard:cf,nochecks` in clang-cl. Passing this flag to
the Clang driver will also pass `--guard-cf` to the MinGW linker.
This feature is disabled by default. The option `-mguard=none` is also
available to explicitly disable this feature.
Depends on D132808 <https://reviews.llvm.org/D132808>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132810
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/MinGW.cpp
clang/lib/Driver/ToolChains/MinGW.h
clang/test/Driver/mingw-cfguard.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132810.456195.patch
Type: text/x-patch
Size: 5700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220828/a2efede0/attachment.bin>
More information about the cfe-commits
mailing list