mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-10 03:02:30 +00:00
* elflink.c (elf_link_output_extsym): Strip defined plugin symbols
even when strip_discarded is false.
This commit is contained in:
parent
9c15afc467
commit
d56d55e7af
@ -1,3 +1,8 @@
|
||||
2011-10-08 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elflink.c (elf_link_output_extsym): Strip defined plugin symbols
|
||||
even when strip_discarded is false.
|
||||
|
||||
2011-10-05 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
* coffgen.c (coff_write_alien_symbol): Don't write
|
||||
|
@ -8679,10 +8679,12 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data)
|
||||
&& bfd_hash_lookup (finfo->info->keep_hash,
|
||||
h->root.root.string, FALSE, FALSE) == NULL)
|
||||
strip = TRUE;
|
||||
else if (finfo->info->strip_discarded
|
||||
&& (h->root.type == bfd_link_hash_defined
|
||||
|| h->root.type == bfd_link_hash_defweak)
|
||||
&& elf_discarded_section (h->root.u.def.section))
|
||||
else if ((h->root.type == bfd_link_hash_defined
|
||||
|| h->root.type == bfd_link_hash_defweak)
|
||||
&& ((finfo->info->strip_discarded
|
||||
&& elf_discarded_section (h->root.u.def.section))
|
||||
|| (h->root.u.def.section->owner != NULL
|
||||
&& (h->root.u.def.section->owner->flags & BFD_PLUGIN) != 0)))
|
||||
strip = TRUE;
|
||||
else if ((h->root.type == bfd_link_hash_undefined
|
||||
|| h->root.type == bfd_link_hash_undefweak)
|
||||
|
Loading…
x
Reference in New Issue
Block a user