diff options
author | Alan Modra <amodra@gmail.com> | 2015-04-10 10:09:34 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-04-10 19:16:47 +0930 |
commit | d07a1b059d790af3da88b9c750925d5a8db51250 (patch) | |
tree | 46056139bea9473b00bba0a602e1b3c8cf971513 /bfd/elflink.c | |
parent | 8d2ea2a80abad66250f2f4a1d38e3b8c796147f8 (diff) | |
download | gdb-d07a1b059d790af3da88b9c750925d5a8db51250.zip gdb-d07a1b059d790af3da88b9c750925d5a8db51250.tar.gz gdb-d07a1b059d790af3da88b9c750925d5a8db51250.tar.bz2 |
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.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; } |