]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gold: powerpc: Test whether sym is not a plugin in do_gc_mark_symbol
authorNikita Ermakov <coffe92@gmail.com>
Thu, 14 May 2020 22:57:57 +0000 (08:27 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 14 May 2020 23:00:33 +0000 (08:30 +0930)
commit6a31512fd4fdd38ee2b1ea78543d352f961ca172
tree86649141dfab647395689d696875bf0adfca813c
parent7813437494ac39f3aef392d06ed5416e84fe386b
gold: powerpc: Test whether sym is not a plugin in do_gc_mark_symbol

sym->object() could be either a Plugin or Powerpc_relobj. There could
be a situation when Pluginobj would be proccessed in
ppc_object->get_opd_ent(dst_off) as Powerpc_relobj and it leads to the
segmentation fault.

* powerpc.cc (do_gc_mark_symbol): Don't segfault on plugin symbols.
gold/ChangeLog
gold/powerpc.cc