* powerpc.cc (Target_powerpc::symval_for_branch): Don't assert
authorAlan Modra <amodra@gmail.com>
Thu, 27 Jun 2013 03:11:22 +0000 (03:11 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 27 Jun 2013 03:11:22 +0000 (03:11 +0000)
commita2d7bf59d6e7b42aa05c73d40fa7b6ebb12df4f7
treeff85ce23981e3454bc81fe195c0d8121fcb7a395
parent02b1871e58f3de923ae7d3eceb99e0db43928249
* powerpc.cc (Target_powerpc::symval_for_branch): Don't assert
on garbage collected .opd section.

* powerpc.cc (Target_powerpc::do_gc_add_reference): Test dst_shndx
is non-zero.
(Target_powerpc::do_gc_mark_symbols): Likewise for sym->shndx().
(Target_powerpc::do_function_location): Likewise for loc->shndx.
gold/ChangeLog
gold/powerpc.cc