diff options
Diffstat (limited to 'libphobos')
-rw-r--r-- | libphobos/libdruntime/config/x86/switchcontext.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libphobos/libdruntime/config/x86/switchcontext.S b/libphobos/libdruntime/config/x86/switchcontext.S index 85f2e00..f2f8efa 100644 --- a/libphobos/libdruntime/config/x86/switchcontext.S +++ b/libphobos/libdruntime/config/x86/switchcontext.S @@ -24,6 +24,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "../common/threadasm.S" +/* NB: Generate the CET marker for -fcf-protection. */ +#ifdef __CET__ +# include <cet.h> +#endif + #if defined(__i386__) && !defined(__CET__) .text |