[AArch64] Remove redundant calculation of plt stub destination for veneer
authorJiong Wang <jiong.wang@arm.com>
Mon, 22 Feb 2016 12:16:06 +0000 (12:16 +0000)
committerJiong Wang <jiong.wang@arm.com>
Mon, 22 Feb 2016 12:16:06 +0000 (12:16 +0000)
commit9a2284679086e32c0c2a46e08b23edde6fc8be85
tree4437adbae93c7ba7751fe03fe7d7898c79bf68de
parent01e57735b0e8e6a613c58c271350dac2c416bb03
[AArch64] Remove redundant calculation of plt stub destination for veneer

elfNN_aarch64_size_stubs, the caller of aarch64_type_stub has redirected
the final destination of long branch veneer to plt stub if the call
should go through it.

It's redundant to do the same check and redirect again from scratch
inside aarch64_type_stub.

bfd/
  * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
  for destination.  Remove useless function parameters.
  (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
bfd/ChangeLog
bfd/elfnn-aarch64.c