Riscv shared libraries should not export __global_pointer$.
[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   -z ibt                      Generate GNU_PROPERTY_X86_FEATURE_1_IBT\n\
5   -z shstk                    Generate GNU_PROPERTY_X86_FEATURE_1_SHSTK\n"));
6 '
7 PARSE_AND_LIST_ARGS_CASE_Z_CET='
8       else if (strcmp (optarg, "ibtplt") == 0)
9         link_info.ibtplt = TRUE;
10       else if (strcmp (optarg, "ibt") == 0)
11         link_info.ibt = TRUE;
12       else if (strcmp (optarg, "shstk") == 0)
13         link_info.shstk = TRUE;
14 '
15
16 PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_CET"
17 PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_CET"