]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Downgrade linker error on protected symbols in .dynbss to a warning
authorAlan Modra <amodra@gmail.com>
Fri, 10 Apr 2015 00:39:34 +0000 (10:09 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Apr 2015 10:03:16 +0000 (19:33 +0930)
PR ld/18222
* elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error
on adding a protected visibility variable to .dynbss.

bfd/ChangeLog
bfd/elflink.c

index 14aea85404b79f615cfd94e2645f61ce750c1075..2060e3c627f9806b2cfad3487144d1b0d69ef3b9 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-10  Alan Modra  <amodra@gmail.com>
+
+       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  <amodra@gmail.com>
 
        Revert 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
index 3d6d3ac3a1f446579f47a4e5fec4f432a7083a9f..2c6b04b56fc42a365b16f7a205917424abf66c7e 100644 (file)
@@ -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;
 }