]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[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 12:47:08 +0000 (23:17 +1030)
commit47ddf85083463008bdc03d762a058e832f45c44c
tree115cad96b958e4cbcfb814bd3ff4bc7d21dc9368
parent746abc81ffa501fa829072ad46405ac232ef941a
[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