diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-04-09 07:46:21 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-04-09 07:53:00 -0700 |
commit | eba27bd7815b5d5e7bafc2bf37f9c4c7dda30ec6 (patch) | |
tree | d23155fb63860edfb593f3c205a0fdf65feea759 /ld/emulparams | |
parent | 7823a9415b2919241f7a7425d9dcc3c62ada0779 (diff) | |
download | gdb-eba27bd7815b5d5e7bafc2bf37f9c4c7dda30ec6.zip gdb-eba27bd7815b5d5e7bafc2bf37f9c4c7dda30ec6.tar.gz gdb-eba27bd7815b5d5e7bafc2bf37f9c4c7dda30ec6.tar.bz2 |
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.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf_x86_64.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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 ;; |