From: H.J. Lu Date: Thu, 9 Apr 2015 14:46:21 +0000 (-0700) Subject: Remove BNDPLT and add PARSE_AND_LIST_ARGS_CASE_Z X-Git-Tag: gdb-7.10-release~874 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eba27bd7815b5d5e7bafc2bf37f9c4c7dda30ec6;p=external%2Fbinutils.git Remove BNDPLT and add PARSE_AND_LIST_ARGS_CASE_Z * emulparams/elf_x86_64.sh (BNDPLT): Removed. (PARSE_AND_LIST_OPTIONS): New. (PARSE_AND_LIST_ARGS_CASE_Z): Likewise. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z. (gld${EMULATION_NAME}_list_options): Remove BNDPLT check. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1bbd4d5..9e79980 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2015-04-09 H.J. Lu + + * emulparams/elf_x86_64.sh (BNDPLT): Removed. + (PARSE_AND_LIST_OPTIONS): New. + (PARSE_AND_LIST_ARGS_CASE_Z): Likewise. + * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Remove + BNDPLT check. Handle PARSE_AND_LIST_ARGS_CASE_Z. + (gld${EMULATION_NAME}_list_options): Remove BNDPLT check. + 2015-04-09 Nick Clifton * po/fr.po: Updated French translation. diff --git a/ld/emulparams/elf_x86_64.sh b/ld/emulparams/elf_x86_64.sh index aa26a1b..984e5e9 100644 --- a/ld/emulparams/elf_x86_64.sh +++ b/ld/emulparams/elf_x86_64.sh @@ -36,7 +36,14 @@ case "$target" in case "$EMULATION_NAME" in *64*) LIBPATH_SUFFIX=64 - BNDPLT=yes + PARSE_AND_LIST_OPTIONS=' + fprintf (file, _("\ + -z bndplt Always generate BND prefix in PLT entries\n")); +' + PARSE_AND_LIST_ARGS_CASE_Z=' + else if (strcmp (optarg, "bndplt") == 0) + link_info.bndplt = TRUE; +' ;; esac ;; diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index dc643b6..5db5a93 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -2286,13 +2286,6 @@ fragment <