xref: /netbsd-src/external/gpl3/binutils.old/dist/ld/emulparams/extern_protected_data.sh (revision e992f068c547fd6e84b3f104dc2340adcc955732)
1PARSE_AND_LIST_OPTIONS_NOEXTEN_PROTECTED_DATA='
2  fprintf (file, _("\
3  -z noextern-protected-data  Do not treat protected data symbol as external\n"));
4  fprintf (file, _("\
5  -z indirect-extern-access   Enable indirect external access\n"));
6  fprintf (file, _("\
7  -z noindirect-extern-access Disable indirect external access (default)\n"));
8'
9
10# Set link_info.indirect_extern_access to 2 to indicate that it is set
11# by "-z indirect-extern-access".
12PARSE_AND_LIST_ARGS_CASE_Z_NOEXTEN_PROTECTED_DATA='
13      else if (strcmp (optarg, "noextern-protected-data") == 0)
14	link_info.extern_protected_data = false;
15      else if (strcmp (optarg, "indirect-extern-access") == 0)
16	link_info.indirect_extern_access = 2;
17      else if (strcmp (optarg, "noindirect-extern-access") == 0)
18	link_info.indirect_extern_access = 0;
19'
20
21
22PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_NOEXTEN_PROTECTED_DATA"
23PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_NOEXTEN_PROTECTED_DATA"
24