forked from OSchip/llvm-project
[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:
parent
298059a4ac
commit
2000211ff3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue