mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
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.
This commit is contained in:
@ -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>
|
2015-04-10 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
Revert 2015-03-05 H.J. Lu <hongjiu.lu@intel.com>
|
Revert 2015-03-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
@ -2674,13 +2674,9 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info,
|
|||||||
dynbss->size += h->size;
|
dynbss->size += h->size;
|
||||||
|
|
||||||
if (h->protected_def)
|
if (h->protected_def)
|
||||||
{
|
|
||||||
info->callbacks->einfo
|
info->callbacks->einfo
|
||||||
(_("%P: copy reloc against protected `%T' is invalid\n"),
|
(_("%P: copy reloc against protected `%T' is dangerous\n"),
|
||||||
h->root.root.string);
|
h->root.root.string);
|
||||||
bfd_set_error (bfd_error_bad_value);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user