Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JITLink][RISCV] ADD/SUB relocs: read value from working memory
The various ADD/SUB relocations work by reading the current value the relocation points to, transforming it, and then writing it back to memory. While the current implementation writes the value back to working memory, it reads the current value from the execution address of the relocation. This causes at least wrong results, but often crashes, when the addresses of working memory are not equal to execution addresses. This patch fixes this by reading the current value from working memory. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D147693
- Loading branch information
Showing
2 changed files
with
14 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters