aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-12-12 23:39:14 +1030
committerAlan Modra <amodra@gmail.com>2014-12-12 23:45:49 +1030
commitde287215cef5f4271367f75c557c1af788892e69 (patch)
treed189e0a4257bdd71e91b50d05b3b1a8e8269e31f /bfd/elflink.c
parente5a9158d093d53f2bb1057359ac381dcdf6d4305 (diff)
downloadgdb-de287215cef5f4271367f75c557c1af788892e69.zip
gdb-de287215cef5f4271367f75c557c1af788892e69.tar.gz
gdb-de287215cef5f4271367f75c557c1af788892e69.tar.bz2
Set bfd_error in _bfd_elf_adjust_dynamic_copy
PR 15228 * elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index a01daf2..2da6d1b 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2684,6 +2684,7 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info,
info->callbacks->einfo
(_("%P: copy reloc against protected `%T' is invalid\n"),
h->root.root.string);
+ bfd_set_error (bfd_error_bad_value);
return FALSE;
}