]> 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 09:46:47 +0000 (19:16 +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 f1d93435223a2e6e983648e9cd3d630f039c6f3d..f50ae75d23951d2b5e905ed52187fc2b04a9cd58 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-05  H.J. Lu  <hongjiu.lu@intel.com>
index 183b313e3f4abfa5f6f67d30fa569f451f35e022..5bc9e9b9d485d2e098fa4d13350f1b3f378de7e5 100644 (file)
@@ -2674,13 +2674,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;
 }