From: Alan Modra Date: Fri, 12 Dec 2014 13:09:14 +0000 (+1030) Subject: Set bfd_error in _bfd_elf_adjust_dynamic_copy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de287215cef5f4271367f75c557c1af788892e69;p=binutils-gdb.git Set bfd_error in _bfd_elf_adjust_dynamic_copy PR 15228 * elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0db2820ed7b..d783e3ebae8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Alan Modra + + PR 15228 + * elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error. + 2014-12-12 Alan Modra PR 15228 diff --git a/bfd/elflink.c b/bfd/elflink.c index a01daf2fdff..2da6d1b8ce7 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; }