summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0db2820ed7b..d783e3ebae8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,11 @@
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
* elflink.c (_bfd_elf_adjust_dynamic_copy): Add "info" param.
Error on copy relocs against protected symbols.
(elf_merge_st_other): Set h->protected_def.
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;
}