[GOLD] PowerPC linkage table error
authorAlan Modra <amodra@gmail.com>
Fri, 28 Jun 2019 00:47:45 +0000 (10:17 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Jun 2019 00:47:45 +0000 (10:17 +0930)
commitf073a3e8c6735bd8fc24d35a957d8944087ea367
tree3438e59b4a39f85c9939e17004f32804fc0ae6ae
parentc432bbbaaa072438e6303b819bdcb4289c2b22e0
[GOLD] PowerPC linkage table error

This fixes a segfault when attempring to output a "linkage table
error".  "object" is only non-NULL in the local symbol case.

* powerpc.cc (Stub_table::plt_error): New function.
(Stub_table::do_write): Use it.
(Output_data_glink::do_write): Don't segfault emitting linkage
table error.
gold/ChangeLog
gold/powerpc.cc