Retro68/binutils/ld/emulparams/dt-relr.sh
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

19 lines
698 B
Bash

HAVE_DT_RELR=yes
PARSE_AND_LIST_OPTIONS_PACK_RELATIVE_RELOCS='
fprintf (file, _("\
-z pack-relative-relocs Pack relative relocations\n"));
fprintf (file, _("\
-z nopack-relative-relocs Do not pack relative relocations (default)\n"));
'
PARSE_AND_LIST_ARGS_CASE_Z_PACK_RELATIVE_RELOCS='
else if (strcmp (optarg, "pack-relative-relocs") == 0)
link_info.enable_dt_relr = true;
else if (strcmp (optarg, "nopack-relative-relocs") == 0)
link_info.enable_dt_relr = false;
'
PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_PACK_RELATIVE_RELOCS"
PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_PACK_RELATIVE_RELOCS"