buildtools/binutils/ld/emulparams/extern_protected_data.sh

24 lines
1.0 KiB
Bash
Raw Permalink Normal View History

2016-10-10 16:55:00 +02:00
PARSE_AND_LIST_OPTIONS_NOEXTEN_PROTECTED_DATA='
2016-02-10 18:58:24 +01:00
fprintf (file, _("\
-z noextern-protected-data Do not treat protected data symbol as external\n"));
2023-08-05 16:17:51 +01:00
fprintf (file, _("\
-z indirect-extern-access Enable indirect external access\n"));
fprintf (file, _("\
-z noindirect-extern-access Disable indirect external access (default)\n"));
2016-02-10 18:58:24 +01:00
'
2023-08-05 16:17:51 +01:00
# Set link_info.indirect_extern_access to 2 to indicate that it is set
# by "-z indirect-extern-access".
2016-10-10 16:55:00 +02:00
PARSE_AND_LIST_ARGS_CASE_Z_NOEXTEN_PROTECTED_DATA='
2016-02-10 18:58:24 +01:00
else if (strcmp (optarg, "noextern-protected-data") == 0)
2023-08-05 16:17:51 +01:00
link_info.extern_protected_data = false;
else if (strcmp (optarg, "indirect-extern-access") == 0)
link_info.indirect_extern_access = 2;
else if (strcmp (optarg, "noindirect-extern-access") == 0)
link_info.indirect_extern_access = 0;
2016-02-10 18:58:24 +01:00
'
2016-10-10 16:55:00 +02:00
PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_NOEXTEN_PROTECTED_DATA"
PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_NOEXTEN_PROTECTED_DATA"