gold: don't install branch-to-stub for TLS relaxed ERRATUM 843419 sequences on AArch64

TLS relaxation may change erratum 843419 sequences that those offending ADRP
instructions actually transformed into other instructions in which case there
is erratum 843419 risk anymore that we should avoid installing unnecessary
branch-to-stub.

        * aarch64.cc (Insn_utilities::is_mrs_tpidr_el0): New method.
        (AArch64_relobj<size, big_endian>::try_fix_erratum_843419_optimized):
        Return ture for some TLS relaxed sequences.

This change is backport of commit 37de058ab2e9619fbb6dea52ec2773a5d65619c4
  - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=37de058ab2e9619fbb6dea52ec2773a5d65619c4
to binutils-2.27.

Change-Id: I47a89d94ff8a0838b3d2ff9be41d9e98bfd59e85
1 file changed
tree: 0d169501e9f73bb7494dc5e6f137c38338618d04
  1. binutils-2.27/
  2. OWNERS