Copy relocations against protected symbols
Alan Modra
amodra@gmail.com
Fri Dec 12 13:15:00 GMT 2014
Oops, I should set bfd_error too.
PR 15228
* elflink.c (_bfd_elf_adjust_dynamic_copy): Call bfd_set_error.
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;
}
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list