From d07a1b059d790af3da88b9c750925d5a8db51250 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 10 Apr 2015 10:09:34 +0930 Subject: 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. --- bfd/ChangeLog | 6 ++++++ bfd/elflink.c | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f1d9343..f50ae75 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 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-05 H.J. Lu PR ld/pr15228 PR ld/pr17709 diff --git a/bfd/elflink.c b/bfd/elflink.c index 183b313..5bc9e9b 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -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; } -- cgit v1.1