x86: Support Intel Shadow Stack with SHSTK property
[deliverable/binutils-gdb.git] / ld / emulparams / cet.sh
index 62ff105613f85831d4cd90e8f9df0dc635b2c5c4..1973413c9005e9b678ab588092ae3f912fece196 100644 (file)
@@ -1,13 +1,16 @@
 PARSE_AND_LIST_OPTIONS_CET='
   fprintf (file, _("\
   -z ibtplt                   Generate IBT-enabled PLT entries\n\
-  -z ibt                      Generate GNU_PROPERTY_X86_FEATURE_1_IBT\n"));
+  -z ibt                      Generate GNU_PROPERTY_X86_FEATURE_1_IBT\n\
+  -z shstk                    Generate GNU_PROPERTY_X86_FEATURE_1_SHSTK\n"));
 '
 PARSE_AND_LIST_ARGS_CASE_Z_CET='
       else if (strcmp (optarg, "ibtplt") == 0)
        link_info.ibtplt = TRUE;
       else if (strcmp (optarg, "ibt") == 0)
        link_info.ibt = TRUE;
+      else if (strcmp (optarg, "shstk") == 0)
+       link_info.shstk = TRUE;
 '
 
 PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_CET"
This page took 0.036367 seconds and 4 git commands to generate.