Re: [PATCH v3] x86: Document -mcet-switch

2022-05-23 Thread Richard Biener via Gcc-patches
On Mon, 23 May 2022, H.J. Lu wrote: > When -fcf-protection=branch is used, the compiler will generate jump > tables for switch statements where the indirect jump is prefixed with > the NOTRACK prefix, so it can jump to non-ENDBR targets. Since the > indirect jump targets are generated by the comp

[PATCH v3] x86: Document -mcet-switch

2022-05-23 Thread H.J. Lu via Gcc-patches
When -fcf-protection=branch is used, the compiler will generate jump tables for switch statements where the indirect jump is prefixed with the NOTRACK prefix, so it can jump to non-ENDBR targets. Since the indirect jump targets are generated by the compiler and stored in read-only memory, this doe