- // We don't report symbols defined in discarded sections.
- if (sym->is_defined_in_discarded_section())
+ // We don't report symbols defined in discarded sections,
+ // unless they're placeholder symbols that should have been
+ // provided by a plugin.
+ if (sym->is_defined_in_discarded_section() && !sym->is_placeholder())