This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Copy relocations against protected symbols
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 12 Dec 2014 23:44:58 +1030
- Subject: Re: Copy relocations against protected symbols
- Authentication-results: sourceware.org; auth=none
- References: <20141212130509 dot GB23430 at bubble dot grove dot modra dot org>
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