mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* linker.c (_bfd_generic_link_output_symbols): Handle a
no-longer-global symbol entered as a BFD_PLUGIN.
This commit is contained in:
@@ -2359,6 +2359,12 @@ _bfd_generic_link_output_symbols (bfd *output_bfd,
|
||||
else
|
||||
output = FALSE;
|
||||
}
|
||||
else if (sym->flags == 0
|
||||
&& (sym->section->owner->flags & BFD_PLUGIN) != 0)
|
||||
/* LTO doesn't set symbol information. We get here with the
|
||||
generic linker for a symbol that was "common" but no longer
|
||||
needs to be global. */
|
||||
output = FALSE;
|
||||
else
|
||||
abort ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user