summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-01-07 18:03:42 (GMT)
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-01-07 18:04:28 (GMT)
commitce50b1b3b1e1b45732545cffd79073afa36a5192 (patch)
treef85538514b23693bf45bb620860091d348e9bf1d
parent3febaa7a3e7b8e89ef420c7984d60816798f1678 (diff)
downloadtoolchain_binutils-ce50b1b3b1e1b45732545cffd79073afa36a5192.zip
toolchain_binutils-ce50b1b3b1e1b45732545cffd79073afa36a5192.tar.gz
toolchain_binutils-ce50b1b3b1e1b45732545cffd79073afa36a5192.tar.bz2
fix build error with gold aarch64
original from here: https://www.sourceware.org/ml/binutils/2015-07/msg00234.html Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--binutils-2.25/gold/aarch64.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils-2.25/gold/aarch64.cc b/binutils-2.25/gold/aarch64.cc
index 1148bf7..a62833b 100644
--- a/binutils-2.25/gold/aarch64.cc
+++ b/binutils-2.25/gold/aarch64.cc
@@ -2023,7 +2023,7 @@ AArch64_relobj<size, big_endian>::try_fix_erratum_843419_optimized(
if (-(1 << 20) <= adr_imm && adr_imm < (1 << 20))
{
// Convert 'adrp' into 'adr'.
- Insntype adr_insn = adrp_insn & ((1 << 31) - 1);
+ Insntype adr_insn = adrp_insn & ((1u << 31) - 1);
adr_insn = Insn_utilities::
aarch64_adr_encode_imm(adr_insn, adr_imm);
elfcpp::Swap<32, big_endian>::writeval(adrp_view, adr_insn);