From: Alan Modra Date: Fri, 10 Apr 2015 00:39:34 +0000 (+0930) Subject: Downgrade linker error on protected symbols in .dynbss to a warning X-Git-Tag: binutils-2_25_1~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e700dd4cc48839215235097c2468f5e1d46ef80c;p=thirdparty%2Fbinutils-gdb.git Downgrade linker error on protected symbols in .dynbss to a warning PR ld/18222 * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error on adding a protected visibility variable to .dynbss. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 14aea85404b..2060e3c627f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-04-10 Alan Modra + + PR ld/18222 + * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error + on adding a protected visibility variable to .dynbss. + 2015-04-10 Alan Modra Revert 2015-03-06 H.J. Lu diff --git a/bfd/elflink.c b/bfd/elflink.c index 3d6d3ac3a1f..2c6b04b56fc 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2675,13 +2675,9 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info, dynbss->size += h->size; if (h->protected_def) - { - 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; - } + info->callbacks->einfo + (_("%P: copy reloc against protected `%T' is dangerous\n"), + h->root.root.string); return TRUE; }