[GOLD] powerpc.cc tidies
authorAlan Modra <amodra@gmail.com>
Fri, 6 Jan 2017 05:17:33 +0000 (15:47 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 7 Jan 2017 11:34:51 +0000 (22:04 +1030)
commit0e123f69da7567042903c8e6e2ad0b03b0a66e55
tree9c3fb0c60ca11ff2c198a8faa520bb2e2bf338bb
parenta6eb589ffec8e6a3ae83ad6e5f36af31e958ffec
[GOLD] powerpc.cc tidies

Plus some paranoia in symval_for_branch.  We shouldn't get there with
dynamic symbols, but if we ever did the static_cast to Powerpc_relobj
would be wrong.

* powerpc.cc: Use shorter equivalent elfcpp typedef for
Reltype and reloc_size throughout.
(Target_powerpc::symval_for_branch): Exclude dynamic symbols.
(Target_powerpc::Scan::local): Use local var r_sym.
(Target_powerpc::Scan::global: Likewise.
(Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
gold/ChangeLog
gold/powerpc.cc