[GOLD] Don't install branch-to-stub for TLS relaxed ERRATUM 843419 sequences on AArch64
authorJiong Wang <jiong.wang@arm.com>
Thu, 15 Jun 2017 09:35:28 +0000 (10:35 +0100)
committerJiong Wang <jiong.wang@arm.com>
Thu, 15 Jun 2017 10:24:10 +0000 (11:24 +0100)
commit37de058ab2e9619fbb6dea52ec2773a5d65619c4
tree8acee5e23c82c7b1bc5f1e5ac5c0a8d56331f8b5
parent45159d6ad394fe7db840b2b92eaa69508b8a8fe7
[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.

gold/
        * 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.
gold/ChangeLog
gold/aarch64.cc