[AArch64] Fix error in AARCH64_ADR_GOT_PAGE handler

The error was introduced during mechanical replacement
of raw memory reads/writes to use readxxle/writexxle functions
in r230725.

Noted and fixed by Suprateeka R Hegde <hegdesmailbox@gmail.com>

llvm-svn: 234144
This commit is contained in:
Denis Protivensky 2015-04-06 07:44:59 +00:00
parent 298059a4ac
commit 2000211ff3
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ static void relocR_AARCH64_ADR_GOT_PAGE(uint8_t *location, uint64_t P,
llvm::dbgs() << " immhi: " << Twine::utohexstr(immhi);
llvm::dbgs() << " immlo: " << Twine::utohexstr(immlo);
llvm::dbgs() << " result: " << Twine::utohexstr(result) << "\n");
write32le(location, result | read32le(location));
write32le(location, immlo | immhi | read32le(location));
}
// R_AARCH64_LD64_GOT_LO12_NC