Set bfd_error in _bfd_elf_adjust_dynamic_copy

PR 15228
	* elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error.
This commit is contained in:
Alan Modra 2014-12-12 23:39:14 +10:30
parent e5a9158d09
commit de287215ce
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-12-12 Alan Modra <amodra@gmail.com>
PR 15228
* elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error.
2014-12-12 Alan Modra <amodra@gmail.com>
PR 15228

View File

@ -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;
}