x86: Move x86-specific linker options to elf_linker_x86_params
[external/binutils.git] / ld / emulparams / cet.sh
1 PARSE_AND_LIST_OPTIONS_CET='
2   fprintf (file, _("\
3   -z ibtplt                   Generate IBT-enabled PLT entries\n"));
4   fprintf (file, _("\
5   -z ibt                      Generate GNU_PROPERTY_X86_FEATURE_1_IBT\n"));
6   fprintf (file, _("\
7   -z shstk                    Generate GNU_PROPERTY_X86_FEATURE_1_SHSTK\n"));
8 '
9 PARSE_AND_LIST_ARGS_CASE_Z_CET='
10       else if (strcmp (optarg, "ibtplt") == 0)
11         params.ibtplt = TRUE;
12       else if (strcmp (optarg, "ibt") == 0)
13         params.ibt = TRUE;
14       else if (strcmp (optarg, "shstk") == 0)
15         params.shstk = TRUE;
16 '
17
18 PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_CET"
19 PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_CET"