[PATCH] gold: powerpc: Test whether sym is not a plugin in do_gc_mark_symbol

Alan Modra amodra@gmail.com
Thu May 14 23:52:28 GMT 2020


On Wed, May 13, 2020 at 11:47:26PM +0300, Nikita Ermakov via Binutils wrote:
> --- a/gold/powerpc.cc
> +++ b/gold/powerpc.cc
> @@ -9056,7 +9056,7 @@ Target_powerpc<size, big_endian>::do_gc_mark_symbol(
>      Symbol_table* symtab,
>      Symbol* sym) const
>  {
> -  if (size == 64)
> +  if (size == 64 && sym->object()->pluginobj() == NULL)
>      {
>        Powerpc_relobj<size, big_endian>* ppc_object
>  	= static_cast<Powerpc_relobj<size, big_endian>*>(sym->object());

Thanks for the patch.  Pushed.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list