[PATCH v2] peflags: add support for IMAGE_DLLCHARACTERISTICS_GUARD_CF
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Apr 18 07:44:16 GMT 2023
Hi Christoph,
On Apr 17 20:40, Christoph Reiter via Cygwin-apps wrote:
> This allows for setting, clearing, and displaying the value of the
> "control flow guard" dll characteristics flag.
>
> The flag for MSVC is called "/guard:cf" and the macro ends with "GUARD_CF".
> To keep things consistent, it would make sense to name the option "guard-cf".
> However, there's already "-c"/"control-flow-guard" in genpeimg for this flag,
> and genpeimg shares all other options with peflags so far.
> So, follow genpeimg and go with "-c" and "--control-flow-guard".
>
> This is motivated by mingw-w64 and llvm v16 gaining support for
> CFG (Control Flow Guard).
> ---
> Renamed the option from -g/--guard-cf to -c/--control-flow-guard
>
> peflags.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
Pash pushed. I new rebase 4.6.3 release with your patch is just
building.
Thanks,
Corinna
More information about the Cygwin-apps
mailing list