PR ld/12772
* elflink.c (elf_gc_sweep_symbol): Discard unmarked symbols defined in shared libraries.
This commit is contained in:
parent
afbb9e17e4
commit
6673f753c0
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-12-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR ld/12772
|
||||||
|
* elflink.c (elf_gc_sweep_symbol): Discard unmarked symbols
|
||||||
|
defined in shared libraries.
|
||||||
|
|
||||||
2011-12-07 Tristan Gingold <gingold@adacore.com>
|
2011-12-07 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* mach-o.c (bfd_mach_o_canonicalize_symtab): Fix indentation.
|
* mach-o.c (bfd_mach_o_canonicalize_symtab): Fix indentation.
|
||||||
|
|
|
@ -11725,7 +11725,8 @@ elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data)
|
||||||
if (!h->mark
|
if (!h->mark
|
||||||
&& (((h->root.type == bfd_link_hash_defined
|
&& (((h->root.type == bfd_link_hash_defined
|
||||||
|| h->root.type == bfd_link_hash_defweak)
|
|| h->root.type == bfd_link_hash_defweak)
|
||||||
&& !h->root.u.def.section->gc_mark)
|
&& !(h->def_regular
|
||||||
|
&& h->root.u.def.section->gc_mark))
|
||||||
|| h->root.type == bfd_link_hash_undefined
|
|| h->root.type == bfd_link_hash_undefined
|
||||||
|| h->root.type == bfd_link_hash_undefweak))
|
|| h->root.type == bfd_link_hash_undefweak))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue